what is my ip?

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 202.93.37.81.

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.

  • www.whatismyip.com
  • www.whatismyipaddress.com
  • www.whatsmyip.org
  • www.ip-address.org

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
    {
      $ip=$_SERVER[‘HTTP_CLIENT_IP’];
    }
    elseif (!empty($_SERVER[‘HTTP_X_FORWARDED_FOR’]))   //to check ip is pass from proxy
    {
      $ip=$_SERVER[‘HTTP_X_FORWARDED_FOR’];
    }
    else
    {
      $ip=$_SERVER[‘REMOTE_ADDR’];
    }
echo $ip;
?>

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.

Andi Setiawan

Loving husband - Caring Father - Slap bet Commissionaire (I wish) find my complete profile on: http://andisetiawan.com/about-me http://facebook.com/andiim3 - http://gplus.to/andiim3 - http://andiim3.com

Share
Published by
Andi Setiawan
Tags: phptipstrick

Recent Posts

Dedicated Blog for Dobby and Luna

Dobby and Luna have been part of our lives for the past years. They have…

2 years ago

Demo Site For My Projects

In the year 2021, I've completed some paid projects. Some of them are more technical,…

2 years ago

GlassTime – Glassmorphism WordPress Theme

Based on the GlassTime Bootstrap template, here I present glassmorphism WordPress Theme free to download.This…

3 years ago

GlassTime : Glassmorphism Responsive HTML5 Template

This HTML5 template is using Glassmorphism UI design language which is now trending for 2021…

3 years ago

Daftar Desa, Kecamatan, dan Kode Pos Buleleng – Bali

KecamatanKode POSBanjar81152Buleleng81119Busungbiu81154Gerokgak81155Kubutambahan81172Sawan81171Seririt81153Sukasada81161Tejakula81173Klik pada nama kecamatan untuk melihat daftar desa masing-masing. Sumber: kodepos.andiim3.com

3 years ago

Ninja diganti ADV

Ada yang bilang "semuanya akan mati matic pada akhirnya". Bener aja, sekarang tuntutan transportasi sehari-hari…

4 years ago

This website uses cookies.