Retrieve Guest User IP Address with VF Page
The two standard objects: AuthSession , LoginGeo don’t store the login information of a Guest User. Using a VF Page <apex:page showHeader="false" sidebar="false" controller="userIPAddressController" action="{!getUserIPAddress}"> <script> setTimeout(function(){ var message = '{!ip}'; parent.postMessage(message, window.top.location.origin); }, 3000); </script> <apex:form > {!ip} </apex:form> </apex:page> Controller public class userIPAddressController{ public string ip {get;set;} public pageReference getUserIPAddress() { // True-Client-IP has the value when the request is coming via the caching integration. ip = ApexPages.currentPage().getHeaders()...