PLEASE READ: $_SERVER['REMOTE_ADDR']; showing as stolis IP.

Status
Not open for further replies.

yytttt60

New Member
Messages
3
Reaction score
0
Points
0
Hi, I am just inquiring why the PHP function $_SERVER['REMOTE_ADDR']; is returning stoli's IP, is there anything my code and WordPress's code is wrong, i guess its something to do with the php.ini or Apaches config. I don't want a temporary solution please.

A new comment on the post "Firefox 4.0 Beta 1 Is Here" is waiting for your approval http://yourtechtips.tk/archives/40 Author : older woman (IP: 69.175.122.178 , stoli.x10hosting.com)

A new comment on the post "Firefox 4.0 Beta 1 Is Here" is waiting for your approval http://yourtechtips.tk/archives/40 Author : dylan scholes scooter (IP: 69.175.122.178 , stoli.x10hosting.com

A new comment on the post "Firefox 4.0 Beta 1 Is Here" is waiting for your approval http://yourtechtips.tk/archives/40 Author : farmville farm cash cheats (IP: 69.175.122.178 , stoli.x10hosting.com)

A new comment on the post "Firefox 4.0 Beta 1 Is Here" is waiting for your approval http://yourtechtips.tk/archives/40 Author : mafia wars help request (IP: 69.175.122.178 , stoli.x10hosting.com)

A new comment on the post "Firefox 4.0 Beta 1 Is Here" is waiting for your approval http://yourtechtips.tk/archives/40 Author : what do i need to build a fence (IP: 69.175.122.178 , stoli.x10hosting.com)

I only wrote the post yesterday
-Humza
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
That is a result of the new load balancing architecture they are using. Not sure if there is a way to fix the environmental variable.

Try using either of:

$_SERVER[ 'HTTP_X_FORWARDED_FOR' ]
$_SERVER[ 'HTTP_X_REAL_IP' ]
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
You should beable to do this at the top of the script.

PHP:
$_SERVER['REMOTE_ADDR'] = $_SERVER[ 'HTTP_X_REAL_IP'];
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
This seems to be resolved so I am closing it. If further assistance is required please re-open this thread or create a new one. You can re-open this thread by clicking on the "Administrative" text at the top of the original post.
 
Status
Not open for further replies.
Top