Redcircle wrote:The reason it is returning the ip address is because that is what the function does... returns the ip address. If you want the actual hostname you need to use gethostbyaddr()
No, I don't want the hostname, I *want* the IP address. But I'm getting the IP address of the machine that is running PHP/MySQL (the server), not the client's IP address (that I want).
I need to get the IP address of the user accessing my survey form, but I don't know what is happening. The function GetHostByName ($REMOTE_ADDR) is returning the local server's IP, not the remote address.