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
DipakDipak 

How to get correct Global IP in apex

Hi All,

 

Now i am using "ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP');" to   get the Global Ip. It is showing correct IP in my developer account....But when i am using the same statement in a Enterprise account, it is showing different result...

 

 

So please suggest me , if there is any other way to  get the correct Global IP....

 

 

Thanks 

 

Dipak