Edit the firewall rules to allow communication over all network ports that you want your system to use. You do this using a firewall management tool such as firewalld. Restart the server or virtual machine.