pwnat Usage Example

On the server, run in server mode (-s) on port 8080 (8080.

On the client, run in client mode (-c) on local port 8000 (8000), connect to the server IP ( on port 8080 (8080) and use it to connect to on port 80 ( 80).

[email protected]:~# pwnat -s 8080
Listening on UDP
[email protected]:~# pwnat -c 8000 8080 80
Listening on TCP
New connection(1): tcp:// -> udp://

Packages and Binaries:


pwnat, pronounced “poe-nat”, is a tool that allows any number of clients behind NATs to communicate with a server behind a separate NAT with no port forwarding and no DMZ setup on any routers in order to directly communicate with each other. The server does not need to know anything about the clients trying to connect.

Installed size: 62 KB
How to install: sudo apt install pwnat

  • libc6
[email protected]:~# pwnat -h
usage: pwnat <-s | -c> <args>
  -c    client mode (default)
        <args>: [local ip] <local port> <proxy host> [proxy port (def:2222)] <remote host> <remote port>
  -s    server mode
        <args>: [local ip] [proxy port (def:2222)] [[allowed host]:[allowed port] ...]
  -6    use IPv6
  -v    show debug output (up to 2)
  -h    show this help and exit

Updated on: 2021-Sep-13