>_ linuxcommand.dev
Netcat

-p

Sets the source port for netcat to use.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Verified: 2025-10-07
Syntax
$nc -p [port]
Examples
$nc -p 1234 192.168.59.1 80
Typical use cases
?
Standard usage
-p --help
Note Specify the source port.
Export