Can't access port 8000

Greetings,

I have an HTML server running on port 8000. I can access it through localhost:8000. However, if I get its IP address and try to access it from a second machine (e.g. http://192.168.1.125:8000) it doesn’t work. So, I can access it locally but not from other machines. All of the machines are on the same subnet.

Other facts. I put the server on a second machine and I can access it from a third machine. So, the problem appears to be associate with my main (Fedora 35) box.

Also, I have ufw disabled. And, I can SSH into the machine from other machines proving the network is working.

At this point, I have no idea why my machine is preventing external machine from accessing port 8000.

Any help would really be appreciated.

Thanks!

I found an answer that works for me. I can disable the SELinux firewall and just use UFW. I know how to use UFW.

I can disable the SELinux firewall with:

    systemctl disable firewalld.service
    systemctl stop firewalld.service
1 Like

FYI, to do this with firewalld:

firewall-cmd --add-port=8000/tcp --permanent
firewall-cmd --reload

3 Likes

Thank you very much!

1 Like