Check open ports with nmap
If you want to check if a particular port is open run
nmap -p PORT_NUMBER IP_OR_DOMAIN_NAME
for example
nmap -p 80 example.com
To use nmap to check if a port is open
for tcp
nmap -p port ipaddress
for udp
nmap -sU -p port ipaddress