Windows – Access local webserver on port 8080 in home network using IP-Address

porttcpwindows firewall

this is quite new to me so I hope it is clear what I try to ask.

On my windows 10 pro I have installed a small application which runs as a webserver on port 8080. I can access it using localhost:8080 or using the computers IP-address 192.168.xxx.xxx:8080. This all works fine. However, I thought I should be able to access this site from another device in my home network as well. Typing the 192.168.xxx.xxx:8080 in the browser of this device (ipad). But this doesn't work. "This site cannot be reached".

Searching the internet, let me to the firewall. I see a few rules are added for this application. Both for the UDP and TCP protocol settings are added and for each protocol private and public rules. First I switched off the firewall then I was able to request the site from another device. So it is a firewall setting. Now I found out I had to set the public inbound rule to Allow connection. But as far as I know I'm on a local network, So why can't I access my computer using the 192.168.xxx.xxx:8080 from another device on the same network only allowing private access set to allow to connect? I'm afraid that allowing public access connection my computer is open for everybody.

Hope someone can point me in the right direction. Thx

Best Answer

It depends on how your network connection is setup.

When you make a connection to a wifi point, it is usually set to Public, whereas a LAN connection is usually set as a Home connection or Work connection.

Each of these settings bring security settings with it. Public is the most secure as it denies most firewall traffic by default, whereas Home and Work allow more by default.

The home and work networks are seen by the firewall as Private, whereas the public is seen as public.

In order to find out what type of connection yours is set to, right-click your network icon, then press open network and sharing center.

Below View your active networks at the top left, it will state your network connection and below that the type.

In the past, it was possible to change the type of connection, but in Windows 10 it seems most of the time the network is set as public automatically.

That being said, even if your connection is set as public, allowing the port in the firewall as public is still secure because you have a router too. The router need to open ports in order for outside traffic to be able to get to your webserver, so allowing your firewall to access port 8080 for the public group is perfectly fine.

Related Question