If you are connected to the system and can run a command as root then you can check the ooutputoutput of iptables
iptables -L -vn
this will list the firewall rules and which ports are open target ACCEPT
and any explicitly closed ports target REJECT
.