🦁 IP Animals
🔌 Networking Fundamentals

What Is a Router and How Does It Work?

A router is the box that connects your home to the internet and shares that one connection among all your devices. Here is what a router really does, how it works, and how it differs from a modem and a switch.

Somewhere in your home there is almost certainly a small box with blinking lights and a couple of antennas. That box is a router, and despite being easy to ignore, it is the busiest device on your network. Every message your phone, laptop or TV sends to the internet — and every reply that comes back — passes through it. Understanding what it does turns a mysterious gadget into something you can actually reason about when things go wrong.

At its heart, a router has one job in its name: it routes. It decides where each piece of data should go next, forwarding traffic between your local network and the wider world so that the right data reaches the right destination.

What a router actually does

A router sits at the boundary between two networks: your local network (all the devices in your home) and the internet (everything else). Its work breaks down into a few core tasks.

It forwards packets. Data travels the internet in small chunks called packets, each labelled with a destination address. The router reads that address and decides where to send the packet next, moving it one hop closer to its goal. Multiply that across every device and every second, and you have the ceaseless traffic direction a router performs.

It hands out local addresses. When a device joins your network, the router usually gives it a private address like 192.168.1.24 automatically, using a service called DHCP. This is why you can connect a new phone to Wi-Fi without configuring anything by hand.

It shares one public address. Your whole home presents a single public address, such as 192.0.2.1, to the internet. The router performs NAT so that dozens of devices can share it, keeping track of which reply belongs to which device. The relationship between the two kinds of address is covered in public versus private IP addresses.

Key fact

Your router is the default gateway for every device on your network. When a device wants to reach something on the internet, it hands the traffic to the router, trusting it to know the way. That gateway address is commonly 192.168.1.1.

Router vs modem vs switch

These three devices are constantly muddled together, partly because a single box in your home often plays more than one role. Here is the clean distinction.

DeviceJobAnalogy
ModemConnects your home to your provider's line and converts the signalThe front door to the internet
RouterShares that connection and directs traffic between networksThe traffic officer inside
SwitchConnects devices within one local networkThe internal hallways

A modem is what actually links you to your internet provider, translating between their transmission medium — cable, fibre or phone line — and the digital data your equipment understands. On its own, a modem typically serves just one connection.

A router takes that single connection and shares it, managing your local network and deciding where traffic goes. A switch is simpler still: it connects devices within the same local network so they can talk to each other, but it does not route between networks or reach the internet by itself. Many home routers include a small built-in switch (the row of Ethernet ports on the back) and a wireless access point (the Wi-Fi), which is why one box seems to do everything.

Key fact

The single box most providers give you is really three devices in one: a modem, a router and a switch, often with Wi-Fi added too. That combination is why "router," "modem" and "gateway" get used interchangeably even though they mean different things.

How a router decides where to send data

Routing sounds complex, but the core idea is approachable. Every router keeps a routing table — a set of rules describing which direction to send traffic based on its destination. For a home router the table is short: traffic for a local device stays on the local network, and everything else is sent out through the internet connection toward the provider.

When a packet arrives, the router examines its destination address, consults the table, and forwards it accordingly. Out on the wider internet, far larger routers repeat this process across the globe, each passing the packet to the next until it reaches its destination. Our article on how data travels the internet follows that hop-by-hop journey in detail.

Wireless routers and Wi-Fi

Most home routers are also wireless routers, meaning they include a Wi-Fi radio so devices can connect without cables. It helps to separate the two ideas: routing is about directing traffic between networks, while Wi-Fi is simply one way for a device to attach to the local network. A router could do its routing job perfectly well with only wired connections; Wi-Fi is a convenience layered on top.

Wireless routers broadcast on radio bands, commonly around 2.4 GHz and 5 GHz. Lower frequencies travel farther and through walls more easily, while higher frequencies carry more data over shorter distances — which is the trade-off behind those two network names you often see.

Routers and your security

Because it stands between your devices and the internet, the router is your network's first line of defence. Most include a firewall that blocks unsolicited incoming traffic, and the NAT process itself makes internal devices harder to reach directly from outside. A few sensible habits keep that protection meaningful:

Getting to know your own router

You can reach your router's control panel by typing its address — the default gateway, often 192.168.1.1 — into a browser. From there you can see connected devices, adjust Wi-Fi settings and check your public address. If you are not sure where to look, our step-by-step guide on how to find your IP address includes finding your router's page.

For such an unassuming box, a router does a remarkable amount: assigning addresses, translating between your private world and the public internet, enforcing basic security and directing an endless stream of traffic without a pause. The next time you spot those blinking lights, you will know exactly what all that blinking is for. Curious what public address your router is presenting right now? Take a look at IP Animals.

Frequently asked questions

What does a router actually do?

A router directs traffic between networks. In a home, it sits between your local devices and the internet, deciding where each packet of data should go next, assigning private addresses to your devices, and translating between your private network and your single public address.

What is the difference between a router and a modem?

A modem connects your home to your internet provider's line and converts signals so the two can communicate. A router shares that single connection among all your devices and manages your local network. Many providers combine both functions into one combo box, which is why they are easy to confuse.

Is a router the same as a switch?

No. A switch connects devices within the same local network and moves traffic between them, but it does not route between different networks or connect you to the internet. A router links separate networks together and makes the forwarding decisions between them.

Why is my router's address 192.168.1.1?

That is a common default private address for home routers. It acts as the default gateway for your devices, meaning traffic bound for the internet is handed to the router at that address. Manufacturers also use similar defaults such as 192.168.0.1.

Curious what your own IP is? Visit the IP zoo →