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
Christopher Eikanger AndersenChristopher Eikanger Andersen 

IP and port for sandboxes

I am currently working on a project where we are integrating Salesforce with SAP. Currently, we are trying to open our firewalls to allow traffic to/from cs18.salesforce.com, our Sandbox. However, we do get some errors when opening the IP's in our firewall. 

This is what we have opened:
96.43.146.188
96.43.146.189
96.43.146.60
96.43.146.61
96.43.150.188
96.43.150.189
96.43.150.60
96.43.150.61

Ports – 443, 1024–66535 (inclusive) 

This is the error we get:
Unable to create socket
com.sap.aii.af.ra.ms.api.RecoverableException: unable to create a socket: java.io.IOException: unable to create a socket'. Cause Exception: 'unable to create a socket' 

Any advice on where the issue may be? 
PratikPratik (Salesforce Developers) 
Hi Christopher,

You can refer to this:
http://www.interactiveties.com/b_execute_javascript_button.php#.VGSLmPmUfu4
http://scn.sap.com/thread/3293680
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008pNkIAI

Thanks,
Pratik
Christopher Eikanger AndersenChristopher Eikanger Andersen
Thanks Patrik!

I've been investigating this further now, but still we get the same error. These are the key things we've checked out:
- When trying to access from SOAP UI or ALTOVA(independent tools) we are able to receive the response from the SFDC server.
- Also it is confirmed by the firewall team there is traffic going out.
- We are able to ping/telnet for 96.43.150.188 and 96.43.150.60 on port 443.
- The address to the server is added to Salesforce Remote Settings. 

Any other advice on how to proceed would be greatly appreciated!
 
sorenkrabbe1sorenkrabbe1
Hey Christopher,

Are you receiving the errors in SAP? and when are you receiving the errors?

The IPs you mention above seem odd. I would try to add the recommended IP whitelist to the firewall. Documented here: https://help.salesforce.com/apex/HTViewSolution?id=000003652 under "Salesforce's IP Range"