Add a rule
1
Open the firewall settings
Connect to your server with Remote Desktop. Press Windows + R, type
wf.msc and press Enter. Windows Defender Firewall with Advanced Security opens.2
Start a new inbound rule
Click Inbound Rules on the left, then New Rule on the right.
3
Choose Port
Choose Port and click Next.
4
Enter the port
Choose TCP (unless your software says UDP), and enter the port number under Specific local ports, for example
443. Click Next.5
Allow the connection
Choose Allow the connection and click Next.
6
Choose when it applies
Leave Domain, Private and Public ticked, and click Next. On a VPS, your network connection is usually treated as public.
7
Name it
Give the rule a clear name, such as
Website HTTPS, and click Finish.