I have implemented some logic to reconnect sandboxes through s2s connection after sandbox refresh and use self callouts for that, but apparently something has been changed in Salesforce recently which breaks my functionality.

Looks like now each time when I do callout from Salesforce, it changes IP address each time when callout is made. I believe before it was working fine. I mean there was one IP address for several transaction and several callouts which made me possible to write some "Browser" class. I was able to identify salesforce IP Address in the list of Login History of my user and it was exposed, and I was able to add it to the Network Access whitelist. Now it just says "Salesforce.com IP" but doesn't expose that IP. When I try external tools to detect Salesforce IP it appears to be different at each HTTPCallout (not only each transaction) and these IP addresses,,,,,,,,,,,,,,, etc

are out of range of Salesforce IP Addresses documented here: https://help.salesforce.com/apex/HTViewSolution?id=000003652

IPv4 Networks IPv4 IP Address Ranges Date Added ARIN - - - RIPE - April 14, 2015 - APNIC - -

Does anyone knows what kind of new feature this is and if is it possible to turn this off or to get the complete list of Salesforce IP addresses to make it able to add to Network Access range?

I tried to add but it says IP range too large


Update: let me explain what is the problem. So, when I try to make HTTPCallout from Salesforce to itself to login, it says:

1/4/2016 12:51:05 PM EET Salesforce.com IP Application Failed: Computer activation required Browser test.salesforce.com

and sends me activation code to the email, but even if I use that code and sends another HTTPCallout it would be invalid, since another callout will be made from another IP Address and previous code would be invalid.

1 Answer 1


I just check some of these IPs with IP lookup and none of these seems to be owned by SFDC.

I think you have 4 ways to deal with it:

  • I have tried to use security token but it didn't work, it says 'Incorrect password'
    – Patlatus
    Commented Jan 5, 2016 at 9:10
  • How are you passing the token ? if my password is "Pass123" and my Token is "abcdefg1234567890" then i need to pass "Pass123abcdefg1234567890". So you need concatenate the password and token without space. Commented Jan 5, 2016 at 10:41
  • yes, I have concatenated them and it said it is wrong password
    – Patlatus
    Commented Jan 5, 2016 at 12:17
  • Can you try same thing with tool like eclipse which accept password + token ? make sure your IP is not white listed. I am 100% sure that this works if you do it right. Commented Jan 5, 2016 at 12:26
  • Strange, this issue is reproduced only on one sandbox on cs7 instance. Not sure but when I try to do the same thing from another sandbox on cs50 everything works fine. Anyway, I think I have found a workaround: I can callout cs7 sandbox instance from sandbox on cs50 instance
    – Patlatus
    Commented Jan 5, 2016 at 14:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .