Port forwarding is a rule on your router that sends traffic arriving on a chosen port to a specific device inside your home network. It is how a website or game server at home becomes reachable from the internet, and every rule you add is also a door you have opened.
Why a home server can't be reached
Your router sits between two networks. On the outside it has one public IP address, given to it by your internet provider. On the inside, every device (laptop, phone, the old PC running your game server) gets a private IP address, usually handed out by the router itself through DHCP.
Private addresses come from ranges set aside for local networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Thousands of homes use 192.168.1.20 at the same moment, so those addresses mean nothing on the public internet and are never routed across it.
To let all those devices share one public address, the router uses network address translation (NAT). When your laptop opens a web page, the router rewrites the outgoing packets so they appear to come from the public address, and notes the connection in a table. When the reply comes back, it looks up that entry and passes the reply to your laptop.
That table only fills when a device inside starts the conversation. A connection that starts outside, such as a friend trying to join your game server, arrives at the router with no matching entry. The router has no idea which device it is for, so it drops it. This is why someone on the internet can reach your router but not the server behind it.
What a forwarding rule says
A port forwarding rule fills that gap ahead of time. It tells the router: when new traffic arrives on this port, send it to this device. Most routers ask for four things:
Wondering how this was made? How we make these