Read Ncat.
It is included in nmap.
Check connection to host port:
ncat -zv host post
Example:
ncat -zv google.com 80