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. netcat windows
nc -l -p 5555 > received_file.txt On Client: ncat -l -p 8080 --keep-open --sh-exec "type index