Skip to content

Instantly share code, notes, and snippets.

@InsulaVentus
Created May 9, 2018 13:19
Show Gist options
  • Save InsulaVentus/b59c2c3338e150b409f75f00e7c7899f to your computer and use it in GitHub Desktop.
Save InsulaVentus/b59c2c3338e150b409f75f00e7c7899f to your computer and use it in GitHub Desktop.

Listen on port 4242 locally:

$ nc -vvl -s localhost -p 4242
listening on [127.0.0.1] 4242 ...

Establish connection and send some text:

$ echo "foo" | nc localhost 4242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment