Get Remote IP Address in PHP | ||
| ||
| In case that you want to know the remote client IP address, you can simple get by referencing the global variables $_SERVER[‘REMOTE_ADDR’].
Following is the example to make function can get remote IP address.
But, the above function does not work correctly, if you are behind proxy server. In that case, below function to get real IP address of client. 1: function getRealIPAddr() | ||
| | ||
| |