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];
If you are accessing a local server, then your local IP address is the remote IP. PHP is giving you the correct response.
If you want to know your IP address to the rest of the internet, go to Google and type "what is my ip".