nc -l -p 4444 On Machine B (Client):
nc -l -p 5555 > received_file.txt On Client:
ncat -l -p 8080 --keep-open --sh-exec "type index.html" Then visit http://localhost:8080 in your browser. This is the most famous (and dangerous) use case. Use only on machines you own or have explicit permission to test.
But what about Windows? While Linux comes with Netcat pre-installed on many distributions, Windows does not. However, with the right version, Netcat for Windows is just as powerful.
nc [options] [target host] [port] Or with Ncat:
ncat [options] [target host] [port] Check your version:
Netcat Windows May 2026
nc -l -p 4444 On Machine B (Client):
nc -l -p 5555 > received_file.txt On Client: netcat windows
ncat -l -p 8080 --keep-open --sh-exec "type index.html" Then visit http://localhost:8080 in your browser. This is the most famous (and dangerous) use case. Use only on machines you own or have explicit permission to test. nc -l -p 4444 On Machine B (Client):
But what about Windows? While Linux comes with Netcat pre-installed on many distributions, Windows does not. However, with the right version, Netcat for Windows is just as powerful. Windows does not. However
nc [options] [target host] [port] Or with Ncat:
ncat [options] [target host] [port] Check your version: