View Single Post
Old 08-29-2005, 10:12 AM  
E Guru
Confirmed User
 
Join Date: Jul 2005
Posts: 658
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?
E Guru is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote