Inside your network
Private addresses are used within local networks such as your home, office or lab.
They are not directly routable across the public internet.
Every device communicating across a network needs a way to be identified. IP addresses provide that addressing system. Understanding them is one of the foundations of networking and cybersecurity.
An IP address is a numerical address used to identify where network traffic should be sent.
Think of it a little like an address used for delivering a parcel. The network needs to know where information is going and where the response needs to return.
An example IPv4 address
At home, your devices normally use private IP addresses to communicate inside your local network. Your router then connects that network to the internet using a public IP address.
Private addresses are used within local networks such as your home, office or lab.
They are not directly routable across the public internet.
Public addresses are globally routable and allow networks and internet services to communicate.
Your ISP normally provides your internet connection with a public address, although some providers use technologies such as CGNAT.
203.0.113.42 is from an address range reserved for documentation and examples. It is not somebody's real public IP being exposed here.
IPv4 reserves several ranges specifically for private networks. Home routers commonly allocate addresses from these ranges.
10.0.0.0 – 10.255.255.255
10.0.0.0/8
172.16.0.0 – 172.31.255.255
172.16.0.0/12
192.168.0.0 – 192.168.255.255
192.168.0.0/16
This is why addresses beginning with 192.168 are so common on home networks.
Your laptop, phone, television and other devices can each have their own private IPv4 address while sharing the internet connection's public IPv4 address.
192.168.1.20
192.168.1.21
192.168.1.22
203.0.113.42
Network Address Translation, or NAT, translates connections between the private network and the public side of the router.
IPv4 uses 32-bit addresses and provides roughly 4.3 billion possible addresses.
The growth of the internet eventually made that address space too small for every device to simply have a unique IPv4 address.
IPv6 uses 128-bit addresses, providing an enormously larger address space.
IPv6 is increasingly deployed alongside IPv4 rather than the internet switching from one to the other overnight.
An address is assigned automatically and may change. DHCP is commonly used to allocate addresses to devices on local networks, while ISPs may also dynamically assign public addresses.
An address is deliberately kept consistent. Servers, network equipment and infrastructure often benefit from predictable addresses.
Public IP addresses are visible to internet services you communicate with. They can reveal useful information, but they are often misunderstood.
The ISP or network provider, ASN and an approximate geographic area can often be determined from public databases.
Public IP geolocation is not GPS. A normal IP lookup does not automatically provide someone's exact street address, name or physical location.
When investigating network activity, analysts regularly work with source and destination IP addresses.
198.51.100.24
203.0.113.42
443
TCP
Those details can help answer questions such as: where did a connection originate, which system was contacted, and which network service was involved?
The public addresses in this example come from documentation ranges reserved for examples.