NetSecTools

Home / Guides / What is an IP address? Public vs private, IPv4 vs IPv6 and what it reveals

What is an IP address? Public vs private, IPv4 vs IPv6 and what it reveals

· 8 min read

An IP address is the number that identifies your connection on the internet, much like a postal address identifies a building. Every request you send needs one so that the answer knows where to return.

Knowing what yours says about you helps you understand your privacy and troubleshoot network problems.

Public and private addresses

You usually have two kinds of address at once.

Private (local) address. Your router gives each device in your home a private address that only works inside your network. These ranges are reserved for that purpose:

  • 10.0.0.0 to 10.255.255.255
  • 172.16.0.0 to 172.31.255.255
  • 192.168.0.0 to 192.168.255.255

Your laptop might be 192.168.1.20. Websites cannot see this address.

Public address. This is the address the rest of the internet sees. It belongs to your router, or to your internet provider’s equipment, and every device in your home shares it. A technique called NAT (network address translation) lets many private devices share one public address.

On many mobile networks and some home connections, your provider uses carrier-grade NAT. Then hundreds of customers share the same public address, and the range 100.64.0.0/10 is used between you and the provider. This is one reason why a public IP alone is a poor way to identify one person.

IPv4 and IPv6

There are two versions in use today:

IPv4 IPv6
Example 203.0.113.7 2001:db8::1
Size 32 bits 128 bits
Number of addresses about 4.3 billion enough for every device imaginable

IPv4 addresses ran short years ago, which is why NAT became universal. IPv6 solves the shortage, and many connections now have both. Our What Is My IP tool shows which version you are using.

Static and dynamic addresses

Most homes get a dynamic address: your provider can change it when your router restarts or after some time. A static address never changes, usually costs extra, and is used for servers and services that must be reachable at a fixed place.

What an IP address reveals

An address can reveal:

  • The country and often the region or city, from databases that map address ranges to places.
  • Your internet provider and its network number (ASN).
  • Sometimes a reverse DNS name, a text label such as host-1-2-3-4.provider.net.

It does not reveal your name, your street address or your exact position. Only your provider can link an address to a customer, and it generally does so only for legal reasons.

Why the location is often wrong

IP geolocation is approximate. The databases infer positions from registration data and measurements, so the result may be your provider’s regional hub, or a city a hundred kilometres away. Mobile networks and VPNs make it less accurate still.

What websites do with it

Websites and services use your address to:

  • Show content in your region and apply regional restrictions.
  • Detect fraud, for example a login from an unexpected country.
  • Limit abuse, such as too many requests in a short time.
  • Keep logs for security and legal purposes.

Protecting your privacy

  • A VPN replaces your visible address with the VPN server’s. It hides your address from sites you visit, but you must trust the VPN provider, because it can see your traffic instead of your internet provider.
  • Tor routes traffic through several relays for stronger anonymity, at the cost of speed.
  • A proxy works similarly for some applications, but usually without encrypting your traffic.
  • HTTPS encrypts the content between you and a website, but not the fact that you connected to it.

Remember that your IP address is only one signal. Cookies, accounts, browser fingerprints and logins also identify you, so hiding the address alone does not make you anonymous.

Reverse DNS

Normal DNS turns a name into an address. Reverse DNS does the opposite: it maps an address back to a name, using PTR records. Mail servers use it to judge senders, and network operators use it for troubleshooting. Our What Is My IP tool looks up the reverse DNS name for your address, and the DNS Lookup tool shows other record types for any domain.

Common questions

Is it dangerous if someone knows my IP address? Usually not. It can show your approximate location and provider. In rare cases, an attacker could try to overload your connection or probe your router, which is why you should keep your router updated and avoid exposing services you do not need.

Why does my address change? Dynamic assignment. Your provider reassigns addresses from a pool.

Why do I see a different address than my friend in the same house? You should see the same public address, because you share one router. If they differ, one of you is using a VPN, mobile data, or IPv6 versus IPv4.

Does incognito mode hide my IP address? No. It only stops your browser from saving history and cookies locally.

Check yours

Open What Is My IP to see your public address, version, approximate location, provider and reverse DNS. The address is read by our server from your connection, sent back to you, and not stored. If you run a website, our HTTP Security Headers Checker shows how it presents itself to visitors.