(I'm unsure if Superuser is the appropriate site to ask this question)
I always struggle with port-forwarding and would like to understand some basic aspects:
- I needed to open port
27015
for a dedicated server of a game, so I:- Forwarded port
27015
on my router to the server [192.168.xx.xx:27015
] - Opened port
27015
in Windows Firewall
- Forwarded port
- When I scanned the port, it was closed and Windows' Resource Monitor also showed it closed, however when I started my app, the port appeared open on both of these tools.
What is the principle behind port-forwarding?
- Is it that when I open
27015
on my router, WANIP:27015 is open, but then I have to connect it from a local computer on a given port? - Would opening port
27030
on my computer and redirecting27015
to27030
have worked as well?
Why didn't the port show it was open when the server was offline?
- To see if a port is open, do you need the port to be open in addition to having an app listening on it?