Page 1 of 1

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

Posted: Wed Jan 28, 2004 11:46 am
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.

Posted: Wed Jan 28, 2004 2:38 pm
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, ...