Networking

What is port forwarding and how does it work?

Port forwarding explained: how a router rule sends outside traffic to the right server on your home network, why NAT blocks it, and how to keep it safe.

  • 7 min read
  • 5 questions
  • +35 XP
Transcript

Port forwarding, explained by cats. Kitty has a server at home. Maybe a website. Maybe a game. But it sits behind the router inside the house. On a private network. Cats on the internet can reach the router. But not the server.

So the router needs a rule. If traffic comes to this port, send it to this server inside the house. Port 80? Send it to the web server. Port 25565? Send it to the game server. That is port forwarding.

One public address. Different ports. Different servers inside. But kitty should be careful. Each open port is an open door. Only forward what you need. Or use a VPN instead. Keep it updated and use strong passwords. That’s port forwarding. A router rule that sends outside traffic to the right internal server.