New

The new HostCloud is live. Web Hosting for ₹1 for your first month.

Web Hosting for ₹1 · first month

Claim offerClaim
Hosting & Performance

What is my IP address? Public vs private IP vs server IP explained

Your public IP, your private IP and your server IP are three different things. Here is how to find each one and what you can do with it.

13 November 2026 · 7 min read
What is my IP address? Public vs private IP vs server IP explained

What is my IP address? Public vs private IP vs server IP explained

TL;DR: Your public IP is the address websites see when you connect, and it belongs to your internet provider's router. Your private IP is the address your device has inside your home or office network. Your server IP is the address of your hosting server. To find your public IP, search "what is my IP" or run curl ifconfig.me; for your private IP, use ipconfig on Windows or ip a on Linux; for your server IP, check your hosting panel or use dig +short yourdomain.com.

The three kinds of IP address

Type What it is Example Who can see it
Public IP Address your internet provider gives your connection 49.x.x.x (example) Every site you visit
Private IP Address inside your local network 192.168.1.5 Only devices on your network
Server IP Address of the machine that hosts a website Shown in your hosting panel Anyone who looks up your domain

Two more terms matter. A dynamic IP changes over time, which is common on home connections. A static IP stays the same, and you usually pay for it.

Diagram showing a private device IP, the router's public IP and a hosting server IP

How to find your public IP

  • Search "what is my IP" in a search engine.
  • Run curl ifconfig.me or curl icanhazip.com in a terminal.
  • Open your router's status page.

If you use a VPN or a mobile hotspot, the result is the VPN's or carrier's address, not your home connection.

How to find your private IP

  • Windows: open Command Prompt and run ipconfig. Look for IPv4 Address.
  • macOS: System Settings, Network, then your connection.
  • Linux: run ip a or hostname -I.
  • Android and iPhone: open Wi-Fi settings and tap your network.

Private addresses usually start with 192.168, 10 or 172.16 to 172.31.

How to find your server IP

If the domain uses a CDN or proxy, the lookup returns the CDN's address, not your origin server. Our guide on redirecting the server IP to the domain explains why visitors may reach your site by IP and how to stop it.

Why you might need your IP address

Staying safe

Your public IP does not reveal your name or exact address, but it does reveal your general location and provider. Do not post it publicly if you run a service from home. For privacy use a VPN you trust, and never share server IPs for admin services unnecessarily.

FAQs

What is my IP address?

Your public IP is the address websites see. Search "what is my IP" or run curl ifconfig.me to find it.

Is my IP address the same as my device address?

No. Your device has a private address inside your network and shares one public address with other devices on it.

Why does my IP change?

Many providers assign dynamic IPs that change when your router restarts or after a period of time.

How do I get a static IP?

Ask your internet provider, or use a server or VPS with a fixed IP.

Can someone find my location from my IP?

Only roughly, usually the city or provider region, not your street address.

What is my server IP?

Check your hosting panel, or run dig +short yourdomain.com if the domain is not behind a CDN.

What is the difference between IPv4 and IPv6?

IPv4 uses four numbers like 192.168.1.1. IPv6 uses longer hexadecimal addresses and was created because IPv4 addresses ran short.

Why does a website show a different IP from my server?

A CDN or reverse proxy sits in front and shows its own address.

Conclusion

Know which IP you need: public for what the internet sees, private for your local network and server IP for your hosting. A few commands find each one in seconds, and knowing the difference prevents mistakes with firewalls and DNS.

HostCloud helps Indian websites with reliable hosting, domains and support. See the options at https://hostcloud.in.

Sources:

Related posts