function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Armando jacoboArmando jacobo 

Can we use IP Address instead of domains in an Apex class?

When I consume a web service in a site with SSL can I use the IP of the service instead of domain name?
I reference specifically the metod req.setEndpoint('https://x.x.x.x/digital/api/resource').
pbattissonpbattisson
I do not believe so - my understanding is that the method requires a URL specifically and not an IP address (which can host many URLs. Simple answer is to try it and let us know if it works!