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

get client ip in community component for guest users
Hi, is there a way to get the ip address of the connected guest user?
I try the below code but it works for the logged user but returns null for the guest users:
I try the below code but it works for the logged user but returns null for the guest users:
@AuraEnabled public static String GetUserIPAddress() { string ReturnValue = Auth.SessionManagement.getCurrentSession().get('SourceIp');