You need to sign in to do that
Don't have an account?
Azzu3 Shaik
How to know the logged in users Ip address
Hi All,
Is there any way to find out the logged in users ip address.Please give me some idea if any one knows it.
Thanks.
Is there any way to find out the logged in users ip address.Please give me some idea if any one knows it.
Thanks.
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!!!
Please mark this as solved and best answer to make this community clean for other users.
All Answers
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!!!
Please mark this as solved and best answer to make this community clean for other users.