>_ linuxcommand.dev
Netcat

-6

Forces nc to use IPv6 addresses only.

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