I have a batch process which makes a HTTP call out to third party, but because of IP restriction third party is denaying the request.

Is there any way to get Salesforce server Client IP from where this callout is making?


Salesforce publishes the IP ranges for their networks.

They recommend whitelisting the entire range set:

Please be reminded that our best practice and recommendation is to whitelist the entire list of Salesforce IP ranges for seamless access.

Since your Salesforce org does not have its own static IP and can change instance.

  • Okay, but is there a way to get the IP to check location from where the request is going from ? – Harry Jan 30 '19 at 12:15
  • @Harry make a callout to this endpoint putsreq.com to see from which IP the call orignated – Pranay Jaiswal Jan 30 '19 at 12:24
  • Like Pranay said, but you cannot assume that all callouts made from Salesforce will come from that IP address permanently. – David Reed Jan 30 '19 at 12:25

Salesforce does not have static IP address and hence you have to whitelist all IP's which are mentioned in this link.

Src : https://help.salesforce.com/articleView?id=000003652&type=1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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