Skip to content

Instantly share code, notes, and snippets.

@seisvelas
Last active November 20, 2018 17:23
Show Gist options
  • Save seisvelas/dbf131a8d25aa93ed8ee48df39ce165a to your computer and use it in GitHub Desktop.
Save seisvelas/dbf131a8d25aa93ed8ee48df39ce165a to your computer and use it in GitHub Desktop.
hc027@HC027:~$ nc -l -p 0 >> server.log &
[3] 13060
hc027@HC027:~$ netstat -ltnp | grep nc # do rest in separate shell window
tcp 0 0 0.0.0.0:34033 0.0.0.0:* LISTEN 13060/nc
hc027@HC027:~$ nc localhost 34033
Test Alexis hypothesis
^C
hc027@HC027:~$ cat server.log
Test Alexis hypothesis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment