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.
$_SERVER['REMOTE_ADDR'] Issue
Moderator: General Moderators
- greyhoundcode
- Forum Regular
- Posts: 613
- Joined: Mon Feb 11, 2008 4:22 am
Re: $_SERVER['REMOTE_ADDR'] Issue
I take it your website is accessible on the web, it isn't on a local development server?
Re: $_SERVER['REMOTE_ADDR'] Issue
That's correct.greyhoundcode wrote:I take it your website is accessible on the web, it isn't on a local development server?
- greyhoundcode
- Forum Regular
- Posts: 613
- Joined: Mon Feb 11, 2008 4:22 am
Re: $_SERVER['REMOTE_ADDR'] Issue
Are your other $_SERVER indices as expected? Like HTTP_USER_AGENT?