hi,
why is the remote_addr returning a 127.0.0.1 value for all remote ip's?
Vic
this is probably because you are calling this function on a page thru localhost on that very same machine.
Try calling the page on your server from another machine that is networked to your server. You should get the LAN IP address
thanks, but this wasn't the case in my situation. the variables will vary according to the server configuration. for my server they configured it to be HTTP_X_FORWARDED_FOR.
Changing REMOTE_ADDR to HTTP_X_FORWARDED_FOR also worked for me. I am not sure if my host changed their config as REMOTE_ADDR worked for the first two weeks I had my php stuff up but it just stopped working until I changed the variable to this.
Thanks