We are building an integration with an external system which is behind firewall and they required whitelisting of IP addresses. We provided them with list provided by Salesforce (https://help.salesforce.com/articleView?id=000003652&type=1). But they say they can only whitelist 3 IP address as per their policy.

Is it possible for me to find out IP address of our Salesforce instance? Lets say we find it, is it guaranteed that in won't change?

1 Answer 1


I've used the below in execute anonymous before - just out of interest mind. I've never checked but the ip is liable to change so I'm not sure how much help this will be in the long run.

HttpRequest req = new HttpRequest();
Http httpReq = new Http();
HttpResponse res = httpReq.send(req);
//http://icanhazip.com/ returns:
//http://icanhazptr.com/ returns: proxy-dfw.net.salesforce.com
  • Nice to see a way to get the IP address; I get your point that there is no guarantee if it will change or not.
    – RajeshShah
    Dec 21, 2016 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.