+ Start a Discussion

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....