VPS/VDS Hosting

Open a port in Windows Firewall (VPS)

Create an inbound rule in Windows Defender Firewall to allow HTTP, HTTPS, or a custom application port on your Windows Server VPS.

beginner~1 min read

For a service on your Windows VPS (IIS site, game server, API) to be reachable from the internet, you usually need to allow the port in Windows Defender Firewall, in addition to any rules at your provider.

Before you start

  • Connect via Remote Desktop: see Connect with RDP.
  • Know the port number and protocol (TCP or UDP).
  • Open only what you need (least privilege).

Method 1: GUI wizard

  1. Open Windows Defender Firewall with Advanced Security (wf.msc).
  2. Inbound Rules → New Rule…
  3. Port → TCP (or UDP) → Specific local ports: e.g. 80, 443, or 8080.
  4. Allow the connection.
  5. Select profiles (Domain, Private, Public — on a VPS, Public is often required).
  6. Name it clearly, e.g. HTTP IIS 80.

Method 2: PowerShell (TCP 80 and 443)

Open PowerShell as Administrator:

PowerShell
New-NetFirewallRule -DisplayName "HTTP TCP 80" -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow New-NetFirewallRule -DisplayName "HTTPS TCP 443" -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow

Custom port example:

PowerShell
New-NetFirewallRule -DisplayName "MyApp TCP 5000" -Direction Inbound -Protocol TCP -LocalPort 5000 -Action Allow

Verify something is listening

PowerShell
Get-NetTCPConnection -State Listen | Where-Object { $_.LocalPort -eq 80 }

Or:

PowerShell
netstat -ano | findstr :80

Security reminders

  • Opening a port exposes the service: keep updates, strong passwords, and TLS for web where possible.
  • Confirm cloud security groups if traffic never reaches the VM.

Our Windows VPS are available in the same 8 locations: Windows VPS France, Windows VPS Germany, Windows VPS Netherlands, Windows VPS United Kingdom, Windows VPS USA, Windows VPS Canada, Windows VPS Turkey and Windows VPS Hong Kong. Desktop editions are offered too: Windows 10 RDP and Windows 11 RDP.

Troubleshooting

  • Still unreachable: ensure the app listens on 0.0.0.0 or the public interface, not only 127.0.0.1.
  • RDP issues: do not remove system RDP rules; use provider console if locked out.

Latest tutorials

Stay up to date with the latest offers, discounts and special promotions.

View promotions

We use cookies

We use cookies to measure and improve our site. Privacy policy