Sometimes you need to know what your external IP (internet protocol) address is. Whether just to know or a part of maintenance. Well, I need it sometimes to check whether Iâ€™m being blocked by any website or not. I made a list of how to check our external IP address, check it out!
1. Google Search
The simplest way to check your IP is by doing a Google Search with this keywords : â€œwhat is my IPâ€.
Google will give you your IP address like this: Your public IP address is 126.96.36.199.
Since most of the latest browser available has the ability to do search operation using search bar, or even searching right from the address bar, it will be so easy for you.
2. Web Service
If you donâ€™t have much time to type the phrase â€œwhat is my IPâ€, you might want to bookmark one of the websites below and put it on your bookmark toolbar, so all you have to do is to click the bookmark and wait till the page loaded.
and lot more websites out there with same functionality. What a waste -__-"
3. PHP code
Or if youâ€™re sick of useless page contents of those websites and only need to know your IP address real quick, you may code your own PHP script and put it on your website. Hereâ€™s the code:
if (!empty($_SERVER[‘HTTP_CLIENT_IP’])) //check ip from share internet
elseif (!empty($_SERVER[‘HTTP_X_FORWARDED_FOR’])) //to check ip is pass from proxy
Copy the code above, paste it on notepad, and then save it as a .php file (eg. myip.php) and upload it to your web server, so you can access it like this: www.yourwebsite.com/myip.php .
One example of the live site that will give you only your IP address is : http://www.whatismyip.org.