A network gateway is a device or software component that allows data to pass between two networks that use different protocols. Most home users have a combined router and gateway — the broadband router that forwards packets from the local network to the internet and vice versa.
What does a gateway actually do?
Imagine two office buildings whose lifts (elevators) work on completely different systems — one uses a keycard, the other uses a PIN. A person moving between buildings needs a receptionist in the lobby who understands both systems and can translate for them. That receptionist is the gateway.
In networking, a gateway sits at the edge of a network and translates between the protocols used on each side. This might mean:
- Converting between IPv4 (used on a home LAN) and an internet backbone
- Translating between different email protocols
- Bridging an IoT sensor network (which might use Zigbee or Z-Wave) and an IP network
What is the default gateway?
The default gateway is the router address that a device sends packets to when the destination IP address is not on the local network. Every device on a network has a default gateway configured — usually the IP address of your home or school router.
How it works:
- Your laptop wants to contact
www.bbc.co.uk(IP address outside your local network). - Your laptop checks: is this address on my local network? No — the BBC is not in your home.
- Your laptop sends the packet to the default gateway (usually
192.168.1.1— your router's local address). - The router (acting as gateway) forwards the packet towards the internet.
| Device | Local IP | Default gateway configured to |
|---|---|---|
| Your laptop | 192.168.1.10 | 192.168.1.1 (the router) |
| Your phone | 192.168.1.11 | 192.168.1.1 (the router) |
| Your smart TV | 192.168.1.12 | 192.168.1.1 (the router) |
| Router (gateway) | 192.168.1.1 (LAN) / 93.184.x.x (WAN) | Set by your ISP |
How does a gateway differ from a router?
This is a common source of confusion, because in home networking they are the same physical device. The distinction is conceptual:
| Concept | Function | Where it fits |
|---|---|---|
| Router | Forwards packets between networks using IP addresses — decides the best path | Layer 3 (Network) of the OSI model |
| Gateway | Translates between networks using different protocols — may do more than just routing | Can operate at any OSI layer, depending on the protocols being bridged |
A router is a type of gateway — specifically, one that routes IP packets. But a gateway is a broader concept. A gateway could convert between email protocols (SMTP to X.400), bridge a telephone network and an IP network (a VoIP gateway), or connect a legacy industrial system to a modern cloud platform.
In everyday KS3 computing, "gateway" usually means the default gateway — the router that connects your local network to the internet.
What is a gateway at school or work?
In school and office networks, the gateway is typically a managed router or firewall appliance. It may also include:
- Packet filtering — inspecting and blocking traffic based on rules (acting as a firewall)
- Network address translation (NAT) — mapping many private IP addresses to one public IP address
- Content filtering — blocking categories of websites (used by schools)
- Traffic monitoring — logging which devices access which external addresses
This is why school networks can prevent students accessing certain websites — the gateway inspects and filters all traffic leaving the local network.
How does data leave your home network step by step?
Scenario: you click a link to www.teachcomputing.org on your laptop.
- Your laptop resolves the domain name to an IP address using DNS.
- It checks whether that IP is on your local network — it is not.
- It sends the packet to your default gateway (192.168.1.1, your router).
- Your router strips the local Ethernet frame and creates a new frame for the internet-facing connection.
- It forwards the packet to your ISP's gateway.
- The packet travels across the internet, hopping through multiple routers, until it reaches Teach Computing's server.
- The response follows the same path in reverse.
Without the gateway, your laptop would have no way to reach anything beyond its local network — it would be an island.
Frequently asked questions
Why is my router's IP address usually 192.168.1.1?
IP addresses in the range 192.168.x.x, 10.x.x.x, and 172.16.x.x to 172.31.x.x are reserved for private networks. They are not routable on the public internet. Your router assigns these private addresses to devices on your home network (via DHCP) and uses network address translation (NAT) to share a single public IP address (assigned by your ISP) among all of them. By convention, many manufacturers set 192.168.1.1 as the default gateway address, though this is configurable.
Can a device have no default gateway configured?
Yes — and if it has no default gateway, it can only communicate with other devices on the same local network. It cannot reach the internet or any external network. This is sometimes done deliberately for isolated networks that should not have internet access, or accidentally — in which case the device appears to have network connectivity (it can see the router) but cannot load any websites.
Is a VPN gateway the same as a default gateway?
Not quite, though they are related. When you use a VPN, your device sends all internet-bound traffic to the VPN gateway (the VPN server) rather than directly to your ISP's gateway. The VPN gateway decrypts the traffic and forwards it to the final destination. This hides your actual IP address from the destination and encrypts traffic from eavesdroppers on your local network — which is why VPNs are useful on untrusted Wi-Fi.
What is a gateway in the context of email?
An email gateway (or mail gateway) is a server that sits between your email client and the internet, receiving, filtering, and forwarding email messages. It can apply spam filtering, virus scanning, and content policies before delivering email to internal mailboxes. Email gateways translate between different mail protocols and ensure that mail sent from inside an organisation reaches external recipients correctly.
Want to understand networks inside out for your GCSE? Professor Turing at aitutors.me explains routers, gateways, IP addressing and everything in between.