It seems to be a task that I often perform when setting up new Linux VMs or servers; opening up a port so that it can be reached from outside the VM or server.
If your Linux is running firewalld, it could be a simple as this:
firewall-cmd --permanent --add-port=8080/tcp firewall-cmd --reload
The configurations can be found under /etc/firewalld