Is that what you meant? In my case the remote address is stored at $_SERVER['REDIRECTED_FOR'] . so i did not need that. :)