Port forwarding is a technique used to make services on a private network accessible from the outside. It works by configuring a router to forward external connection requests to specific devices and ports inside the local network. This guide explains how port forwarding works and when to use it.
Your router uses NAT (Network Address Translation) to hide internal devices behind a single public IP. By default, unsolicited external traffic is blocked. Port forwarding tells the router to allow specific traffic and forward it to a specific device and port.
Incoming traffic:
203.0.113.5:8080 → Router → 192.168.1.10:80
The router takes the external request and forwards it to the internal server on the correct port.
192.168.1.1
or 192.168.0.1
).Test your port forwarding using services like canyouseeme.org. Port forwarding is powerful, but should be used cautiously to avoid exposing your network.