Getting loopback address from $_SERVER['REMOTE_ADDR'];

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
spaace
Forum Newbie
Posts: 4
Joined: Wed Jan 28, 2004 11:46 am

Getting loopback address from $_SERVER['REMOTE_ADDR'];

Post by spaace »

Im getting loopback address from $_SERVER['REMOTE_ADDR'] and I wonder why.

I am trying to get the client IP address and everything works on one server (MAndrake), but as soon as I moved the project to a server running OS x 10.3 it only will return the loopback address. 127.0.0.1

Does anyone know why?

Thanks in advance.
spaace
Forum Newbie
Posts: 4
Joined: Wed Jan 28, 2004 11:46 am

Post by spaace »

I solved it, thanks anyway. It is because Apple ships apache with "Enable Performance monitoring" which condenses the web logs and in turn limits the info you can get from the environment vars.

Anyway, ...
Post Reply