Assume you use Archlinux.
It is included in nmap.
Check connectivity to host with port:
host
port
ncat -zv host post
Example:
ncat -zv google.com 80