Usage: nc HOST PORT
or: nc -p PORT -l
Open a pipe to HOST:PORT or listen for a connection on PORT.
Example:
$ nc foobar.somedomain.com 25 220 foobar ESMTP Exim 3.12 #1 Sat, 15 Apr 2000 00:03:02 -0600 help 214-Commands supported: 214- HELO EHLO MAIL RCPT DATA AUTH 214 NOOP QUIT RSET HELP quit 221 foobar closing connection |