>_ linuxcommand.dev
Netcat

-4

Forces `nc` to use IPv4 addresses only.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Verified: 2025-10-07
Syntax
$nc -4 [host] [port]
Examples
$nc -4 192.168.59.1 80
Typical use cases
?
Standard usage
-4 --help
Note IPv4-only option
Export