Netcat
-w
Sets the timeout duration.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verified: 2025-10-07
Syntax
$nc -w [seconds] [host] [port]
Examples
$nc -w 5 192.168.59.1 80
Typical use cases
?
Standard usage
-w --help
Note
Timeout in seconds.
Export