You need to sign in to do that
Don't have an account?

ip of guest user of lightning community
Hi,
I try with this solution,
https://developer.salesforce.com/forums/?id=9060G0000005Pc1QAE
but It returns the ip ogf salesforce server. I want to get ip of client guest user of a ligghtning community.
Is there a solution?
Thankyou in advance
I try with this solution,
https://developer.salesforce.com/forums/?id=9060G0000005Pc1QAE
but It returns the ip ogf salesforce server. I want to get ip of client guest user of a ligghtning community.
Is there a solution?
Thankyou in advance
Try below code
String ip = Auth.SessionManagement.getCurrentSession().get('SourceIp');
Best Regards,
Sandhya