# Network gateway

> The device where one network ends and traffic is handed to another.

- Level: Intermediate
- Topics: Networks
- URL: https://tidbit.legios.com.ar/network-gateway/
- In Spanish: [Puerta de enlace](https://tidbit.legios.com.ar/es/network-gateway/)

A **network gateway** is the point where traffic leaves one network and enters another. Every device on a network knows its neighbors, but for anything outside it needs a door. That door is the gateway: usually a router that is connected to both sides and knows how to pass packets across.

At home you meet it as the **default gateway**. Your laptop looks at each destination IP address: if it is on the local network, it talks to that device directly; if not, it sends the packet to the default gateway, typically your router at an address like `192.168.1.1`, and lets it handle the rest. You can see yours in your network settings, or with `ipconfig` on Windows and `ip route` on Linux. If the gateway is wrong or down, you can still reach the printer next to you but not the internet.

The word is used more broadly too. A gateway can translate between networks that speak different protocols, like the box that connects a building's old phone system to internet calls, or the device that links smart-home gadgets on Zigbee to Wi-Fi. In the cloud, services named "gateway" play the same role: they are the controlled entry or exit between a private network and the outside.

## An analogy

The front door of an apartment building. Neighbors visit each other through the hallways, but anything going to or coming from the street has to pass through that one door.

## Keep in mind

- The exit point from one network into another, usually a router.
- Devices send anything not on the local network to the default gateway.
- At home it is your router, often at an address like 192.168.1.1.
- Broken gateway: local devices still work, the internet does not.

## Go deeper

- [Gateway (telecommunications) on Wikipedia](https://en.wikipedia.org/wiki/Gateway_(telecommunications))
- [Default gateway on Wikipedia](https://en.wikipedia.org/wiki/Default_gateway)

## Related terms

- [Router](https://tidbit.legios.com.ar/router/): The box that connects your devices to each other and to the internet.
- [Packet](https://tidbit.legios.com.ar/packet/): The small chunk every piece of internet data is cut into before it travels.
- [Laptop](https://tidbit.legios.com.ar/laptop/): A whole computer folded into one portable case that runs on a battery.
- [IP address](https://tidbit.legios.com.ar/ip-address/): The number that identifies a device on a network, like a postal address.
- [LAN and WAN](https://tidbit.legios.com.ar/lan-and-wan/): A LAN connects devices in one place; a WAN connects places far apart.
- [Linux](https://tidbit.legios.com.ar/linux/): A free, open source operating system that runs most of the internet's servers.
- [Internet](https://tidbit.legios.com.ar/internet/): A worldwide network of networks that lets any connected device reach any other.
- [Zigbee and Matter](https://tidbit.legios.com.ar/zigbee-and-matter/): Two standards that let smart home devices from different brands talk to each other.
