To do a basic TCP port check, specify the host and port
nc -v google.com 443
Scan a UDP port
nc -vu 9.9.9.9 53
Check if the specified port is listening without sending any data
nc -vz google.com 443