Show Me My IP Address and Host Name

Whenever you are visiting a Website, your activities will be recorded against a client IP address and host name that represent your computer at that time. This simple test page allows you to find out what is your IP address and host name.

What is my IP Address and Host Name?

When you visit a Website, your browser will send two pieces of information to identify your computer as a client: IP address and host name. Of course, the Website server will record this information in the log file.

Today, most home computers and office computers do not have static IP addresses and host names. If you are connected to the Internet from a home computer, the IP address and host name is dynamically assigned to your computer by your service provider.

If you are connected to the Internet from an office computer, you will be most likely sharing the IP address and host name of the proxy server with your colleagues.

How to find out my IP Address and Host Name?

To find out your IP address and host name, the Webmaster can use the PHP built-in array $_SERVER, which contains a lot of information including your IP address and host name:

  • $_SERVER["REMOTE_ADDR"] - Returns your IP address.
  • $_SERVER["REMOTE_HOST"] - Returns your host name.

This test page allows you to find out your IP address and host name when you are connected to the Internet.

Click the button below to start the test:

Popup Windows Tutorials

20 tutorials on different ways to create and test popup windows created in JavaScript: Page unload popups, Pop re-open on close, ...

200+ PHP Script Tutorials

Each tutorial answers one commonly asked PHP programming question with a short, but precise and clear PHP script.