How Does Home Wi-Fi Work? Routers, Public vs Private IP, 2.4GHz and 5GHz
Only one internet line comes into your home. Yet on that single line, your phone, laptop, tablet, TV, and even the robot vacuum are all online at the same time. This everyday miracle is the work of a small box in the corner of the living room — the router — laboring away without a break. In this post, we’ll walk through the terms that come up when your Wi-Fi acts up and you start searching: public IP, private IP, 2.4GHz, channels, and what they actually mean. No code involved.
A router is really four machines in one #
Inside that single box live several devices, each with a different job.
- Router — relays data between the devices in your home and the internet outside. As the name says, it picks the route.
- Wireless access point — the antenna that turns wired signals into radio waves. This is the part the word “Wi-Fi” actually refers to.
- Switch — the wired LAN ports on the back. The spots where you plug in a TV or desktop with a cable.
- Address dispenser (DHCP) — when a new device connects, it automatically hands out an address to use inside the home. This is what happens behind the scenes the moment your phone joins the Wi-Fi.
This is also why the folk remedy “reboot the router and the internet comes back” works so often. When one small box handles four jobs all day long, something eventually gets tangled — and a reboot resets all of it at once.
Public IP and private IP — your home’s main phone number #
An IP address is how devices are found on the internet. But the address your internet provider gives your home is usually exactly one. That is the public IP — think of it as your home’s main phone number.
Since there are many devices inside the home, the router hands out separate addresses that only work internally. These are private IPs. The address like 192.168.0.5 you see in your phone’s Wi-Fi settings is one of them — and your neighbor’s phone may be using the exact same address. Like an office extension number, it only has meaning inside the building.
So what happens when your phone connects to YouTube? The router translates in the middle. It rewrites “a request from extension 5 (the phone) to YouTube” as “a request from our home’s main number” before sending it out, and when the reply comes back, it checks its ledger and routes the answer back to extension 5. This translation work is called NAT (Network Address Translation). That ledger is the secret to how dozens of devices in one home share the internet through a single main number.
There is a side effect, too. Because the private addresses of your home devices are invisible from the outside, NAT unintentionally acts as a basic shield. The structure makes it impossible for the outside world to initiate a connection with a device inside your home — which is also why making a game console or NAS reachable from outside requires a separate router setting (port forwarding).
2.4GHz and 5GHz — the road that goes far and the road that goes fast #
You have probably seen two Wi-Fi names from one router and wondered which to join. The numbers are radio frequency bands, and their personalities are opposites.
| 2.4GHz | 5GHz | |
|---|---|---|
| Speed | Slower | Faster |
| Range and wall penetration | Good | Weak |
| Interference | Heavy | Light |
This is a trade dictated by physics. Lower frequencies travel farther and punch through walls better but carry less data; higher frequencies are the reverse. So as a rule of thumb, 5GHz wins if you are in the same room as the router, and 2.4GHz wins two or three walls away.
The “heavy interference” of 2.4GHz has two causes. First, it is the older band, so everything from your neighbors’ Wi-Fi to Bluetooth gadgets is crowded onto it — the same congestion you see when you open the Wi-Fi list in an apartment building and dozens of networks appear. Second, microwave ovens happen to operate at a similar frequency. The experience of a video call dropping while the microwave is running has a real physical basis. Within each band, the airwaves are further divided into lanes called channels, and modern routers pick an uncrowded lane automatically.
The recent rise of mesh Wi-Fi is an answer to the distance problem. You place several units around the home and bind them under one Wi-Fi name, so as a device moves around, it automatically hops to the nearest unit.
What your Wi-Fi password actually does #
A Wi-Fi password looks like a front-door key, but its real role is bigger. Beyond granting entry, it becomes the raw material for the key that encrypts the radio traffic between the router and your devices. Radio waves are a broadcast spreading through the air — anyone determined enough can receive them — but thanks to encryption (labels like WPA2 and WPA3 are the names of those methods), receiving them does not mean reading them.
That is why public Wi-Fi with no password sends its radio traffic in plaintext — postcard mode. Fortunately, these days the padlock in the address bar (HTTPS) wraps the contents in one more envelope, so it is not as dangerous as it once was. But this structure is where the advice “avoid banking on public Wi-Fi” came from.
When Wi-Fi is slow — figuring out where the jam is #
Finally, let’s fold this post’s knowledge into a one-line diagnostic. When Wi-Fi is slow, the culprit is almost always one of two things: outside the home (your provider’s line) or inside the home (the radio link). Compare the speed measured right next to the router with the speed measured in your room, and the two cases split apart. If it is slow even next to the router, the problem is the line or the router itself. If it is fast next to the router but slow only in your room, you are back to distance, walls, and interference — the 2.4GHz/5GHz story from this post.
To sum up: a router is one box doing the jobs of a router, wireless antenna, switch, and address dispenser, and it connects the home’s extensions (private IPs) to one main number (the public IP) through its NAT ledger. The two Wi-Fi names are the road that goes far (2.4GHz) and the road that goes fast (5GHz), and the password is both an entry pass and the key to encrypting the airwaves. The next time you reboot your router, that little box might look a bit different to you.