Public IP vs Private IP: Differences and How to Check

Public IP vs Private IP: Differences and How to Check

IPNATNetworking

Public IP vs Private IP: Differences and How to Check

Have you ever wondered how multiple devices in your home can access the internet simultaneously through a single connection? The answer lies in the distinction between public IP and private IP addresses, and the NAT technology that bridges them. This guide explains what each type of IP address is, why they exist, and how you can check your own.

What Is a Public IP?

A public IP address is a globally unique identifier on the internet. It is assigned by your ISP (Internet Service Provider) and allows your network to communicate directly with any server on the internet.

Key characteristics of public IPs:

Examples: 203.0.113.45, 121.134.56.78

What Is a Private IP?

A private IP address is valid only within a local area network (LAN). Your smartphone, laptop, tablet, and smart TV on your home Wi-Fi each have a unique private IP, but these addresses are meaningless outside your network.

Key characteristics of private IPs:

Examples: 192.168.1.10, 10.0.0.5, 172.16.0.100

RFC 1918 Private IP Ranges

The address ranges reserved for private use are defined by the RFC 1918 standard. These addresses are never routed on the public internet, so anyone can use them freely within their local network.

RangeStartEndCIDRAddressesTypical Use
Class A10.0.0.010.255.255.25510.0.0.0/8~16.7 millionLarge enterprises
Class B172.16.0.0172.31.255.255172.16.0.0/12~1 millionMedium networks
Class C192.168.0.0192.168.255.255192.168.0.0/16~65,000Home / small office

Home routers typically use the 192.168.0.0/16 or 192.168.1.0/24 range. Enterprises and large organizations tend to use the 10.0.0.0/8 range.

Additionally, the 169.254.0.0/16 range is reserved for link-local addresses. A device assigns itself an address in this range when it cannot obtain one from a DHCP server — if you see this, it usually signals a network configuration problem.

How NAT (Network Address Translation) Works

NAT is the essential technology that connects private IPs to the public internet. Your router translates private IP addresses into its single public IP, enabling all your devices to share one internet connection.

The NAT Process

  1. A device on your network (192.168.1.10) sends a request to a website.
  2. The router replaces the source address with its public IP (203.0.113.45).
  3. The router records the mapping in a translation table, noting which internal device made which request.
  4. The website’s response arrives at the public IP.
  5. The router consults the translation table and forwards the response to the correct internal device.

Types of NAT

The method used in virtually every home network is PAT. It is the reason dozens of devices can use the internet through a single public IP.

CGNAT: Your ISP’s Extra Layer of NAT

CGNAT (Carrier-Grade NAT) is a large-scale NAT deployed by ISPs to cope with IPv4 address scarcity. While standard NAT operates on your home router, CGNAT adds another translation layer at the ISP network level.

Under CGNAT:

CGNAT is common on mobile networks (LTE/5G) worldwide and is increasingly used on some wired broadband connections as well.

How to Check Your IP Address

Checking Your Public IP

Your public IP can only be determined by an external service. The simplest method is to visit ip.utilo.kr in your web browser. You will instantly see your public IP, location data, and ISP information.

You can also check from the command line:

curl ifconfig.me
curl ip.utilo.kr/api/ip

Checking Your Private IP

Your private IP is found in your operating system’s network settings:

Windows:

ipconfig

macOS / Linux:

ifconfig
# or
ip addr show

Smartphone: Settings → Wi-Fi → tap the connected network for details.

Static IP vs Dynamic IP

Beyond the public/private distinction, IP addresses also differ in how they are assigned.

Static IP:

Dynamic IP:

Most home internet connections use dynamic IPs, which means your public IP today might differ from yesterday’s. To see your current IP, visit ip.utilo.kr.

Summary Comparison

Public IPPrivate IP
ScopeEntire internetLocal network only
UniquenessGlobally uniqueUnique within network
Assigned byISPRouter (DHCP)
Direct accessYesNo (requires NAT)
CostIncluded in ISP planFree
Example203.0.113.45192.168.1.10

For a broader introduction to IP addresses, see Complete Guide to IP Addresses. To learn how VPNs change the IP that others see, check out VPN Detection Methods.

Check your public IP now →

한국어로 읽기 →
AD

Professional Matching — Diamatch

Trust of a matchmaker + convenience of an app

Get Started

Related Posts