Russia
A complete step-by-step guide explaining how to open firewall ports on a Windows VPS or dedicated server for applications, game servers, websites, remote desktop tools, and custom software.
by Hamza
Windows Firewall protects your server by blocking unauthorized incoming connections. However, some applications and services require specific ports to remain open so users or software can connect properly.
For example, you may need to open ports for:
If you are using a Windows VPS and need reliable performance for hosting applications and services, try our Windows VPS hosting at Retzor.
Before opening a port on your Windows server, make sure:
Opening unnecessary ports may create security risks, so only allow ports that are actually needed.
First, connect to your Windows server using Remote Desktop Protocol (RDP).
On Windows:
Once connected, you will have access to the Windows desktop environment.
Click the Start Menu and search for:
Then click the Windows Defender Firewall application from the search results.
This tool manages all inbound and outbound traffic rules for your Windows server.
Inside Windows Defender Firewall, click:
This opens the advanced firewall management interface where you can create custom rules for specific ports and applications.

In the left menu, click:
Then, in the right-side Actions panel, click:
This launches the firewall rule creation wizard.
Choose:
Then click the Next button.
This option allows you to open a specific TCP or UDP port manually.
Most applications use TCP connections, but some services such as game servers or VPNs may require UDP.
| Protocol | Common Uses |
|---|---|
| TCP | Websites, RDP, FTP, databases |
| UDP | Games, VoIP, VPNs, streaming |
Enter your port number inside:
Example:
If you want to open multiple ports, separate them with commas:
On the next screen, select:
This allows incoming traffic through the selected port.
Click Next to continue.
You will now see three profile options:
In most VPS environments, it is recommended to enable all three profiles unless you have a specific security requirement.
Click Next to continue.
Enter a descriptive name for the rule so you can easily identify it later.
Example:
You can optionally add a description explaining the purpose of the rule.
Finally, click:
After creating the firewall rule, you can verify the port status using online port checking tools or PowerShell commands.
PowerShell example:
You can also use websites like:
| Port | Purpose |
|---|---|
| 80 | HTTP Web Traffic |
| 443 | HTTPS Secure Web Traffic |
| 3389 | Remote Desktop Protocol (RDP) |
| 21 | FTP Server |
| 25565 | Minecraft Server |
| 1194 | OpenVPN |
Leaving unnecessary ports open increases the attack surface of your server and may create security vulnerabilities.
Opening ports on a Windows server is essential for allowing applications, websites, game servers, and remote services to communicate properly over the internet.
By using Windows Defender Firewall advanced settings, you can safely create custom inbound rules for TCP or UDP traffic in just a few minutes.
Always remember to keep security in mind and avoid exposing unnecessary services publicly.
Need a powerful Windows VPS for hosting applications, game servers, or remote desktop environments? Try our Windows VPS hosting at Retzor with fast deployment and reliable performance.