Linux
Check if SELinux is enabled:
sestatus
Install the semanage tool (CentOS)
yum -y install policycoreutils-python
List enabled http_ports
semanage port -l | grep -w http_port_t
Add a new port
semanage port -a -t http_port_t -p tcp 8080