To allow a port with the Ubuntu firewall, do this:
ufw allow 8000
To test it, do “ufw status”:
Status: active To Action From -- ------ ---- OpenSSH ALLOW Anywhere 8000 ALLOW Anywhere OpenSSH (v6) ALLOW Anywhere (v6) 8000 (v6) ALLOW Anywhere (v6)
To allow a port with the Ubuntu firewall, do this:
ufw allow 8000
To test it, do “ufw status”:
Status: active To Action From -- ------ ---- OpenSSH ALLOW Anywhere 8000 ALLOW Anywhere OpenSSH (v6) ALLOW Anywhere (v6) 8000 (v6) ALLOW Anywhere (v6)