How to get clients ip in php
I am having a problem with some server load sharing and getting the clients correct ip.
When I use xforwardedfor it gets the first machines ip (servers ip) and I use remote_addr it gets the 2nd machines ip.
I tried using ['HTTP_CLIENT_IP'] but it shows ip blank.
Does anyone know what I can use grab the ip from the users browser?
|