$_SERVER['REMOTE_ADDR'] Issue
Posted: Tue Mar 02, 2010 1:22 pm
Hey, all.
First post to the forums here. Thanks, in advance, for any help with my issue.
I'm using the $_SERVER['REMOTE_ADDR'] command to get the IP address of the visitor to my page, but it's returning only the local IP address for the web server (e.g. 12.0.0.1), regardless of where the site is hit from and what network is being used for the hit. Can someone point me in the direction of the error in either the config or the code? I need to be able to see story hits that occur in-hosue versus those from external computers.
Thanks so much for the help.
Michael
New York, NY.
First post to the forums here. Thanks, in advance, for any help with my issue.
I'm using the $_SERVER['REMOTE_ADDR'] command to get the IP address of the visitor to my page, but it's returning only the local IP address for the web server (e.g. 12.0.0.1), regardless of where the site is hit from and what network is being used for the hit. Can someone point me in the direction of the error in either the config or the code? I need to be able to see story hits that occur in-hosue versus those from external computers.
Thanks so much for the help.
Michael
New York, NY.