In this article, you will understand how you can set up Port 8080 on Windows Server 2019 or Windows Server 2016. This port is a trendy alternative to port 80 for offering web services. “8080” was chosen since it is “two times 80”, and also because it is above the restricted well-known service port range.
If you want to set up port 8080 directly inside the Windows server then you can do it this way as seen below.
Here are the steps with Images to create a Port 8080 Rule.
First login into your Windows Server 2019 Virtual machine.
Then click start and search Administrative Tools.
Click Start -> Administrative Tools
Now click on the Windows Firewall with Advanced Security
First look of Windows Defender Firewall and Advanced Security
In Actions panel -> click New Rule –> Click on Inbound Rules
Right-click on the Inbound Rules and click the new rule as shown in the image below.
In Rule Type -> select “Port” -> Next
In Protocol and Ports -> select “TCP” -> select Specific local ports: “8080” -> Next
In Action -> select “Allow the connection”
In Profile -> select “Domain”, “Private” and “Public”
In Name -> Give a suitable name to identify your rule e.g.: “World Wide Web Services (HTTP 8080 Traffic-In)”
Now if you try to open Via public IP and Port 8080 with it your page will open.