String ipAddress = ApexPages.currentPage().getHeaders().get(‘X-Salesforce-SIP’);
‘True-Client-IP’ – when the request is coming via the caching integration.
‘X-Salesforce-SIP’ – when the request is not via caching integration (sandbox, developer edition orgs) or via the secure url.
Cheers!!!
Could you please explain more, what do you mean by caching integration.???
caching integration – sandbox, developer edition orgs.
Cheers!!!