Network Explainer

Public vs Private IP Address: What's the Difference?

Public vs private IP address explained: what each one is, the private IP ranges, how NAT and CGNAT work, and how to find both IP addresses on Windows 11.

Public vs Private IP Address: What's the Difference?
On this page
    Quick answer

    A public IP address is the address your internet provider gives your router; websites and the rest of the internet see it. A private IP address is the address your router gives each device at home, such as 192.168.1.20; it only works inside your network. Your router translates between them with NAT, so every device at home shares one public IP.

    Windows says your IP is 192.168.1.20, but a "what is my IP" website shows something completely different. Both are right. Every device on a home network has two addresses: a private one inside your home and a public one shared by the whole household. This guide explains public vs private IP addresses, the ranges you will see, and when the difference matters.

    Public vs Private IP at a Glance

    Comparison of public and private IP addresses
    Public IPPrivate IP
    Assigned byYour internet provider (ISP)Your router (DHCP)
    Visible toEvery website and server you useOnly devices on your network
    UniqueWorldwide (or shared via CGNAT)Only inside your network
    Example203.0.113.45192.168.1.20
    Shows locationRoughly: city and ISPNo
    Where to find itA "what is my IP" site or appWindows Settings or ipconfig

    Private IP Address Ranges

    Three IPv4 ranges are reserved for private networks and are never used on the public internet:

    Private IPv4 address ranges
    RangeTypical use
    192.168.0.0 – 192.168.255.255Most home routers (192.168.0.x or 192.168.1.x)
    10.0.0.0 – 10.255.255.255Businesses, some ISPs' routers, VPNs
    172.16.0.0 – 172.31.255.255Businesses, Docker and virtual machines

    Two other ranges are worth knowing:

    • 169.254.x.x is a self-assigned address. Windows uses it when it gets no answer from the router, so it usually means a connection problem.
    • 100.64.0.0 – 100.127.255.255 is used by ISPs for carrier-grade NAT (more below).

    How NAT Connects the Two

    Your router performs Network Address Translation (NAT). When your laptop (192.168.1.20) opens a website, the router replaces the private address with its public one, remembers which device asked, and passes the reply back to the right device. That is how a phone, a TV and three laptops share one public IP. NAT also acts as a basic shield: devices outside cannot start a connection to your laptop unless you set up port forwarding.

    CGNAT: When Your Public IP Is Not Really Yours

    IPv4 addresses ran out years ago, so many providers, especially mobile and some fibre ISPs, put several customers behind one public address. This is carrier-grade NAT (CGNAT). Signs: the WAN address on your router starts with 100.64–100.127 or is another private address, and it does not match what "what is my IP" sites show. CGNAT is fine for browsing, but it breaks port forwarding, hosting game servers and some remote-access tools. Ask your ISP for a public IP, or use IPv6, which has enough addresses for everyone; see IPv4 vs IPv6.

    How to Find Both on Windows 11

    • Private IP: Settings > Network & internet > Wi-Fi or Ethernet > properties > IPv4 address. Or run ipconfig.
    • Public IP: visit a "what is my IP" website, or run curl ifconfig.me in Terminal.

    IP Address App shows both on one screen: your public IP with ISP and approximate location, and every local adapter with its private IP, gateway and DNS. Step-by-step instructions are in how to find your IP address on Windows 11.

    IP Address App adapter list showing IP address, gateway and DNS servers
    Local adapters list their private IP addresses and gateway.
    Network tools running a ping test with replies and response times
    Ping tools help test devices on your private network.

    When the Difference Matters

    Tasks and which IP address they need
    TaskWhich IP you need
    Connect to a printer, NAS or another PC at homeThe device's private IP
    Port forwarding for a game or cameraPrivate IP of the device, set on the router
    Reach your home network from outsideYour public IP (or a dynamic DNS name)
    Whitelist your connection on a work serverYour public IP
    Router login pageThe router's private IP (the default gateway)

    For port forwarding, give the device a fixed private address first, or the rule breaks when the router assigns a new one. A DHCP reservation or a manual address both work; see find your IP address on Windows 11 to read the current one.

    Which IP Is a Privacy Concern?

    Only the public IP. Websites log it and can estimate your city and provider from it, though not your street address. Your private IP reveals nothing useful outside your home, and neither does your MAC address, which never leaves the local network. A VPN replaces your public IP with the VPN server's address.

    FAQ

    Is 192.168.1.1 a public or private IP?

    Private. It is the most common address for home routers and only works inside your own network.

    Do all devices at home share the same public IP?

    Yes, on IPv4. The router gives each device its own private IP and shares one public IP through NAT. With IPv6, each device can have its own public address.

    Does my public IP change?

    Usually, yes. Most home plans use a dynamic IP that can change when the router restarts. Static public IPs are often a paid extra.

    Can two devices have the same private IP?

    Not on the same network; that causes an IP conflict. Devices on different networks can use the same private IP without any problem.

    Conclusion

    Your public IP is your household's address on the internet; your private IP is your device's address at home. NAT on the router connects the two. Knowing which is which helps with port forwarding, remote access and privacy questions. Find more network apps for Windows.

    Get it freeIP Address App

    Try IP Address App

    Your public IP, ISP, location and network tools like ping and DNS lookup.

    Get it fromMicrosoft Store