# nc -z -w xxxx.com -
Connection to xxxx.com port [tcp/ftp] succeeded!
Connection to xxxx.com port [tcp/http] succeeded!
Connection toxxxx.com port [tcp/epmap] succeeded!
Connection to xxxx.com139 port [tcp/netbios-ssn] succeeded!
Connection to xxxx.com port [tcp/https] succeeded!
Connection toxxxx.com port [tcp/microsoft-ds] succeeded!
Connection to xxxx.comc port [tcp/ftps] succeeded!