Last week is the Easter holiday. Finally, a time for me and friends to play some old school shooters.
I opened a dedicated server on my laptop for but my friends could not connect. It turned out that my wireless router did not have the correct port forwarding setting.
A router has only one external IP address but inside the local network (LAN) there could be multiple IP addresses for your laptop, desktop, tablets and phones. The router does not know when incoming transmission to this external IP at, say, port 14567 (actual port number depends on your game), which machine it should forward the payload to. The postman finds the apartment building, but not sure which room this letter belongs to.
So, setting port forwarding ensures any communication going into that port routes to your game server.
Enter the router setting page, usually via 192.168.0.1 on web browser.
Select the option named “Port forwarding” or “Forwarding”.
Add a record.
Port number, there goes your server’s listening port number.
IP, your IP address in the LAN, check this via ipconfig (Windows) or ifconfig (Linux).
Protocol, you could just choose “All” unless you know what you are doing.
And now, back to the gaming.