IP Addresses Explained: IPv4 vs IPv6, Public vs Private

Every device online needs an IP address. Here is a plain-language explanation of what IP addresses are, the difference between IPv4 and IPv6, public and private addresses, NAT, and why it matters for your home or business.

Baasa Cloud Team 12 Nov 2026 4 min read
IP Addresses Explained: IPv4 vs IPv6, Public vs Private

Every time you open a website, send a WhatsApp message or watch a video, your device communicates with other computers across the internet. For that to work, every device needs an address so that data knows where to go and where to return, just as letters need postal addresses. On the internet, these are called IP addresses. You rarely need to think about them, but understanding the basics helps when setting up a router, connecting CCTV for remote viewing, troubleshooting network problems, hosting a server or choosing an internet package for your business. This guide explains IP addresses in plain language.

What is an IP address?

IP stands for Internet Protocol, the set of rules that governs how data is sent across networks. An IP address is a numerical label assigned to each device on a network. When your phone requests a web page, the request carries your IP address as the return address, and the web server's IP address as the destination. Domain names like baasacloud.com exist because humans remember names better than numbers; the Domain Name System (DNS) translates names into IP addresses. You can see this translation with our DNS lookup tool.

IPv4: the original system

The most familiar IP addresses look like 192.168.1.1 or 41.210.145.20. These are IPv4 addresses, made up of four numbers from 0 to 255 separated by dots. IPv4 allows about 4.3 billion unique addresses, which seemed enormous when the internet was designed. But with billions of phones, computers, servers and smart devices, the world has run out of fresh IPv4 addresses. Regional registries, including AFRINIC for Africa, have allocated nearly all their supply, and IPv4 addresses are now traded and leased at significant cost.

IPv6: the solution to address shortage

IPv6 was created to solve the shortage. IPv6 addresses are much longer, written in hexadecimal and separated by colons, such as 2001:0db8:85a3:0000:0000:8a2e:0370:7334, often shortened. IPv6 provides an almost unimaginably large number of addresses, enough for every device for the foreseeable future. IPv6 also simplifies some aspects of networking and routing. Adoption is growing globally, with many mobile networks and major websites supporting IPv6, though adoption in Uganda and much of Africa is still developing. For years to come, IPv4 and IPv6 will operate side by side.

Public vs private IP addresses

A public IP address is visible on the internet and unique worldwide. Your ISP assigns it to your router or connection. Websites you visit see your public IP address. A private IP address is used within local networks, such as your home or office, and is not directly reachable from the internet. Common private ranges include 192.168.x.x, 10.x.x.x and 172.16.x.x to 172.31.x.x. Your router typically uses an address like 192.168.1.1 and assigns private addresses to your phones, laptops and printers. That is why many people in different homes have the same private addresses without conflict. See how to log in to your router.

NAT: sharing one public address

How do many devices with private addresses use the internet through a single public address? Through Network Address Translation (NAT). Your router keeps track of which internal device made each request and forwards responses back to the right device. NAT has helped extend IPv4's life. Many mobile operators also use carrier-grade NAT, where many customers share a single public IP. This works for everyday browsing but can complicate hosting servers, remote access to CCTV and some gaming or VPN setups, because devices behind carrier-grade NAT cannot easily receive incoming connections.

Dynamic vs static IP addresses

Most home and mobile connections use dynamic IP addresses, which can change periodically. This is fine for browsing. A static IP address stays the same and is useful for hosting servers, remote access to office systems, VPNs, CCTV systems, and services that whitelist specific IPs, such as some banking and payment integrations. ISPs usually charge extra for static IPs. See what is a static IP and do you need one.

How to find your IP addresses

To find your public IP, search "what is my IP" in a search engine. To find your private IP on Windows, open Command Prompt and type ipconfig; on Mac or Linux, check network settings or use ip addr. On phones, look in Wi-Fi settings under the connected network's details.

IP addresses and privacy

Your public IP reveals your approximate location, usually your city or ISP, not your exact home address. ISPs can link IP addresses to subscribers, which law enforcement may request in investigations. VPNs hide your IP from websites by routing traffic through another server; see VPNs explained.

IP addresses and websites

Every website is hosted on a server with an IP address. Your domain's DNS records point to that address. When you move hosting, updating DNS to the new server's IP is a key step; our migration team handles this carefully.

Frequently asked questions

Can two devices have the same IP?

Not on the same network or the public internet, but private addresses repeat across different networks.

Does my IP address change?

Dynamic IPs can change; static IPs do not.

Have a question we have not answered?

Our team is on call 24 hours a day. Ask us on WhatsApp or browse the Help Centre.