I'm trying to read Ip address of Logged in community user. I saw this question.
It seems Session's ip address is empty for community user for some reason.
SELECT Users.FirstName, SourceIp FROM AuthSession WHERE Users.Firstname='Danny' ORDER BY CreatedDate DESC LIMIT 1
So neither below would give me the Community user's Ip Address.
Map<String, String> session = Auth.SessionManagement.getCurrentSession();
String ipAddress = session.get('SourceIp');
Is there a way to retrieve it without using 3rd party libraries?
Thanks!