To check your Public IP Address, simply visit http://www.netstumble.com/ipaddress website. You will see a result something like:
Your Public IP Address:
Cut and paste this code, save as ipaddress.php, and upload this to your web hosting.
To know more about PHP $_SERVER, please visit http://php.net/manual/en/reserved.variables.server.php
Your Public IP Address:
64.64.xxx.xxx
This is a PHP $_SERVER global variables available to most Linux web server. To write a code to discover your public IP address is simple, this is an example.<?php echo $_SERVER['REMOTE_ADDR'] ?>
Cut and paste this code, save as ipaddress.php, and upload this to your web hosting.
To know more about PHP $_SERVER, please visit http://php.net/manual/en/reserved.variables.server.php
Comments
Post a Comment