When accessing my site from a number of machines $_SERVER['REMOTE_ADDR'] always resolves to an empty string. What can be the cause of this?
Additional info: One of the machines is running the site on localhost. Shouldn't a machine on localhost always resolve to 127.0.0.1?
My set up is LAMP. One dev. machine that runs the site localhost and that has the problem is a Mac and runs XAMPP. I think our live staging environment is CentOS (shared host).