Whether you are hosting a website, connecting through SSH, configuring DNS records, or troubleshooting network concerns, understanding the server’s IP address is vital. Each server connected to the Internet is assigned an Internet Protocol (IP) address that enables devices and applications to communicate with it. In this post, you will learn different methods to check your IP address on Linux, Windows, and Cloud Server hosting.
A server IP address refers to a unique numerical identifier assigned to your server. It allows users, applications, and other systems to locate and communicate with your server over a network.
There are two common types of server IP addresses:
Knowing your server's IP address can help you:
If you're using a Linux VPS hosting or dedicated server hosting, connect to your server through SSH and run the following command:
hostname -I
This command displays the IP addresses assigned to your server.
Alternatively, you can use:
ip addr show or ip a
Look for the inet entry under your active network interface (such as eth0 or ens33). This represents your server's IP address.
Example: inet 192.168.1.20/24
If your server has multiple network interfaces, you'll see multiple IP addresses.
To check the public IP address of your server, run one of the following commands:
curl ifconfig.me or curl ipinfo.io/ip
The output will display your server's public IP address.
Example: 203.0.113.25
This is the IP address that internet users use to access your server.
If you're using Windows Server:
You'll see details about your network adapters. Locate the IPv4 Address under your active Ethernet adapter.
Example: IPv4 Address . . . . . . . . . : 192.168.0.15
If your server is hosted on the cloud, this may display the private IP address.
Most web hosting providers display your server's IP address in their management portal.
Simply:
This is usually the quickest method if you have access to your hosting dashboard.
If your server uses cPanel:
The displayed IP address is associated with your hosting account.
If you have WHM access:
If you want to verify the IP address your domain currently points to, use the following command:
nslookup yourdomain.com or dig yourdomain.com
Replace yourdomain.com with your actual domain name.
The result will show the IP address associated with your domain's DNS records.
| Public IP Address | Private IP Address |
|---|---|
| Accessible over the internet | Accessible over the internet |
| Required for hosting websites and applications | Used for internal communication |
| Assigned by your hosting provider or ISP | Assigned within your local network |
| Globally unique | Can be reused across different private networks |
If you're unable to find your server's IP address:
Understanding how to check your server’s IP address is a fundamental server management skill. No matter if you are using Linux, Windows Server, cPanel, WHM, or a cloud hosting platform, there are several fast ways to identify both your public and private IP addresses.
Having this information readily available solves server administration, remote access, DNS configuration, and troubleshooting. If you have recently housed a VPS or dedicated server, checking the IP address should be one of the first steps before configuring your applications or hosting websites.