IP Location

Client-Side IP Address Information

Local IP

Public IP

IPv6

Browser Information

Name

OS

User-Agent

CCBot/2.0 (https://commoncrawl.org/faq/)

Your IP Address:
54.234.228.185

What is "What is My IP Address" used for?

The term "What is My IP Address" became popular by Internet users to determine
Public IP address using online websites. When user search in Google and typing
"What Is My IP Address" then Google will provide relevant results that contain
websites to show user IP address, in addition, Google.com also show user IP
address for relevant terms (IP address, Public IP Address, My IP Address, Show
my IP Address, My Public IP, My Public IP Address, Show my IP, etc).

Why "What is My IP Address" is popular keyword?

Its obvious that Internet user using keywords that very close to what they need,
and when such person want to know IP address of device that he use, then the
first keyword that hits our mind will be: "What is My IP Address"?
However, there are other keywords that can be used for same result but Google
will show different websites for each keyword according to their ranking in the
keyword group.

How owner of these websites can show Public IP Address of Visitor?
How can some one show Public IP Address of User?
What code or program or script can be used for showing visitor IP Address?

Internet is the global system of interconnected networks and devices (Single or
in Group), every device in the network should use (IP Address) to access the
internet, and the IP address that used for communication between Internet
devices is called (Public IP Address). There is another type of IP Address also
that called (Private IP Address) this type is used for Internal networks (Lan
networks) for example: if you are using ADSL or any broadband internet at Home,
the ISP might give you one Public IP Address to your router, and other user that
connected to that router are using private IP Address but all users that
connected to that router using one Public IP address that visible to the global
network.

In case that the ISP not gave Public IP Address, then, all user that connected
to the router using such Public IP address of the ISP company, and usually,
because of Public IP Address restriction (Less number available) ISPs will
design the network so that thousands of user connected to one Public IP Address.

Now lets answer the questions above: How such website can find or determine your
Public IP Address? Simply, when you are typing website address in the browser,
like (Google.com) and hitting enter, the browser will ask operating system to
translate the domain name to IP address this is called DNS translation (DNS
stands for Domain Name System that converts URL to IP Address and vice versa),
then, once you hit enter, the browser asks operating system to translate the URL
you entered to IP Address, and then, your computer Operating system will send
GET request to the translated IP address of the domain name.

Now, when Computer sending Get request to IP address, the request of which sent
by your computer contains your computer IP Address, and now there are two cases:
if you are using Public IP Address, then the request contains your Public IP
Address, otherwise, the request contains your Private IP Address. For case 2 if
the request contains Private IP Address: it means that you are connected to
router that needs to analyze the "REQUEST" to replace your Private IP Address
with Public IP Address, and if your router not has any Public IP Address, then
another router belongs to ISP will do that, therefore, finally, the request in
the final destination should contain Public IP Address of the requester.

Now, we explained that the request contains Public IP address, the remote
computer that you are requesting to get information like Google or any other
website, can get all information of the request that sent by you! then, it can
read your Public IP Address.

Example: The below information is related to (HTTP Request) header that
extracted from your request:

ASP Code to show User IP Address (Public IP Address):

Can PHP or ASP Determine Private IP Address?

No. PHP or Any other server-side language or Scripts can't determine your
private IP Address because Private IP address is not sent by the request.
However, there is such technique using JavaScript WebRTC API that can determine
your (Public and Private IP Address) using just client side scripts.