Forward Ports in Windows Server Firewall
If youβre hosting a web server, game server, or application on your Windows Server VPS, you may need to open and forward
specific ports in the Windows Defender Firewall to allow incoming traffic. This guide will show you how to open and
forward ports in Windows Server Firewall.
π Prerequisites
- A Windows Server VPS from VolticHost
- Administrator access
- The port number you need to open (e.g., 25565 for Minecraft, 8080 for a web server)
1οΈβ£ Open Windows Defender Firewall
1. Click Start, search for Windows Defender Firewall, and open it.
2. In the left panel, click Advanced settings.
3. Youβll see the Windows Firewall with Advanced Security window.
2οΈβ£ Create a New Inbound Rule (Allow Incoming Traffic)
1. In the left panel, select Inbound Rules.
2. Click New Rule⦠(right panel).
3. In the Rule Type window, select Port and click Next.
4. Choose TCP or UDP (based on your applicationβs requirement).
5. Under Specific local ports, enter the port number you need to open (e.g., 25565 for Minecraft).
6. Click Next, then select Allow the connection.
7. Click Next, ensure all network types (Domain, Private, Public) are checked, and click Next again.
8. Name your rule (e.g., Minecraft Server Port) and click Finish.
β
Your port is now open for incoming traffic.
3οΈβ£ Create an Outbound Rule (Allow Outgoing Traffic)
To allow your server to send data through the port, repeat the process for Outbound Rules:
1. In Windows Defender Firewall with Advanced Security, select Outbound Rules (left panel).
2. Click New Rule⦠(right panel).
3. Select Port, then click Next.
4. Choose TCP or UDP, and enter the same port number.
5. Click Next, select Allow the connection, and click Next again.
6. Ensure all network types (Domain, Private, Public) are checked.
7. Name your rule (e.g., Minecraft Outbound Port) and click Finish.
β
Your application can now send data through this port.
4οΈβ£ Verify That the Port is Open
To ensure the port is open, use Command Prompt (cmd):
Run the following command:
netstat -an | find "25565"
(Replace 25565 with your actual port.)
If the port is open, youβll see an entry like this:
TCP 0.0.0.0:25565 0.0.0.0:0 LISTENING
Alternatively, you can use an online port checker like: https://www.yougetsignal.com/tools/open-ports/
Enter your VPS IP address and the port number to verify.
5οΈβ£ (Optional) Port Forwarding via NAT (For Internal Networks)
If you need to forward a port from your VPS internal network to an external network, follow these steps:
1. Open Command Prompt (Admin) and run:
netsh interface portproxy add v4tov4 listenport=8080 listenaddress=0.0.0.0 connectport=80 connectaddress=127.0.0.1
- Replace 8080 with the external port.
- Replace 80 with the internal port.
- Replace 127.0.0.1 with the internal IP of your hosted service.
2. To verify the forwarding rule:
netsh interface portproxy show all
3. To remove a forwarding rule:
netsh interface portproxy delete v4tov4 listenport=8080 listenaddress=0.0.0.0
β
This method allows port redirection within your VPS for better security and access control.
π Conclusion
Youβve successfully opened and forwarded ports in Windows Defender Firewall, allowing external connections to your
applications. If you experience issues, double-check your firewall settings and ensure your server is listening on the
correct port.
For further assistance, contact Voltichost Support.