the-bastion/doc/sphinx/plugins/open/nc.rst

33 lines
548 B
ReStructuredText
Raw Normal View History

2020-10-16 00:32:37 +08:00
===
nc
===
Check whether a remote TCP port is open
=======================================
.. admonition:: usage
:class: cmdusage
--osh nc [--host] HOST [--port] PORT [-w TIMEOUT]
.. program:: nc
.. option:: --host HOST
Host or IP to attempt to connect to
.. option:: --port PORT
TCP port to attempt to connect to
.. option:: -w SECONDS
Timeout in seconds (default: 3)
2021-04-14 19:37:30 +08:00
2020-10-16 00:32:37 +08:00
Note that this is not a full-featured ``netcat``, we just test whether a remote port is open. There is no way to exchange data using this command.