Net2Secure: A Leading Data Center Service Provider in India

Home Knowledge Base Tech Guide /

How to Check Your Server IP Address?


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.

What is a Server IP Address?

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:

Why Do You Need to Know Your Server IP Address?

Knowing your server's IP address can help you:

Steps to Check Server IP Address Using the Command Line (Linux)

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.

Method 2: Find Your Public IP Address

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.

Method 3: Check Server IP Address on Windows Server

If you're using Windows Server:

  1. Open Command Prompt.
  2. Type: ipconfig
  3. Press Enter.

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.

Method 4: Check the IP Address from Your Hosting Control Panel

Most web hosting providers display your server's IP address in their management portal.

Simply:

  1. Log in to your hosting account.
  2. Navigate to your VPS or Dedicated Server.
  3. Open the server details page.
  4. Locate the Public IP or Primary IP Address field.

This is usually the quickest method if you have access to your hosting dashboard.

Method 5: Check the IP Address Using cPanel

If your server uses cPanel:

The displayed IP address is associated with your hosting account.

Method 6: Check the IP Address Using WHM

If you have WHM access:

  1. Log in to WHM.
  2. Navigate to Server Status.
  3. Select Server Information.
  4. The server's primary IP address will be displayed along with other server details.

How to Check Which IP Address Your Domain Uses

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.

Difference Between Public and Private IP Addresses

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

Troubleshooting Tips

If you're unable to find your server's IP address:

  • Verify that your server is powered on and connected to the network.
  • Ensure you are checking the correct network interface.
  • Confirm that your server has been assigned an IP address by your hosting provider.
  • Restart the network service if necessary.
  • Check your hosting control panel for the assigned public IP.

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.


Anurag Soam

By Anurag Soam

A skilled Technical Content Writer with an unwavering dedication to covering complex concepts and specializing in writing explicit, concise, and SEO-friendly content for diverse audiences. With a solid background in technology, including SaaS, PaaS, IaaS, Documentation, Cloud, Cybersecurity, and DevOps, he’s an expert in curating content that enhances user experience and facilitates product success. He’s constantly updated on the latest industry trends and tools to deliver qualitative technical content.

View all of Anurag Soam's posts.

Contact Us


Related Tech Guide Posts

We use cookies

By continuing to browse this site, you are agreeing to the use of cookies to enhance your experience.