I am running an application that executes SQL queries based on a user’s IP address. However, it seems that getIpAddress() is returning the internal IP of the connected user, not the external IP. For my application to function properly I need a reliable way to grab the user’s external IP address.
All I know of now is using httpGet on a script that is running on whatismyip.com:
but I don’t exactly want to rely on another site just to return the correct IP address. Any thoughts?