How do I get my system\'s IP address?
I am using $ip_address=$_SERVER[REMOTE_ADDR];, but it returns my localhost IP address instead of my system\'s IP
$ip_address=$_SERVER[REMOTE_ADDR];
$_SERVER['SERVER_ADDR']
See the php docs for a full list of stuff you might find in the $_SERVER superglobal.
$_SERVER