If you are on Fedora or CentOS, run Code: system-config-securitylevel to change or check your firewall settings.