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
Swamy P R NSwamy P R N 

How to find the Port number for my Salesforce instance

Hello Folks,

As am doing an integration with SAP, Netowrk team asking me about IP's and Port's.
Already provided IP Addresses but not able to provide Port numbers. So how can i know the port number for my instance( https://ap1.salesforce.com )

Your help is higly appreciated, Thanks in advance.
PratikPratik (Salesforce Developers) 
Hi Swamy,

URL class will help you.

Please refer to:
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_url.htm

Thanks,
Pratik
sony sonusony sonu

hi Swamy P R N, did your problem got solved???