Windows Firewall Basics
Hosting a game server or IIS on Windows? You'll need to allow traffic through the Windows Defender Firewall.
Method 1: Allow an App
The simplest way to let a program communicate:
- Open Start and type "Allow an app through Windows Firewall".
- Click Change settings.
- Find your application (e.g.,
nginx.exeorsrcds.exe) in the list. - Check both Private and Public.
- Click OK.
Method 2: Advanced Port Rules
For more control, or to open a specific port like 80 (HTTP):
- Open Start and type "Windows Defender Firewall with Advanced Security".
- Click on Inbound Rules in the left pane.
- Click New Rule... on the right.
- Select Port -> Next.
- Choose TCP or UDP and enter the port number (e.g.,
80). - Select Allow the connection.
- Keep all profiles checked (Domain, Private, Public).
- Name the rule (e.g., "Web Server Port 80") and click Finish.
The changes take effect immediately.