How to get Local IP Address Of User Behind Proxy Server
The $_SERVER['REMOTE_ADDR'] Usage in PHP will give the IP(ISP provided) address of the User. It is a dynamic IP address provided By Internet service provider to The Client / User.
Suppose on client side the internet connection is shared in a network. We cannot use this method to identify the IP address of the particular user. The users may be sharing a gateway server for the internet access. So if we use the $_SERVER['REMOTE_ADDR'] it will show the ISP provided IPaddress of the gateway computer only. In such cases to get the local IP address of the user behind the proxy we can use
$_SERVER['HTTP_X_FORWARDED_FOR']
This will give the local IP address of the particular client computer in the network.