Johnny.sh

Simplest Server Ever

Use command line tool nc, short for NetCat. On almost every unix system. IT’S TCP. NOT HTTP. Just a simple client/server relationship.

Set up a listener on port 1234…

nc -l 1234

Connect as a client to port 1234…

nc 127.0.0.1 1234

That’s it. If you type a message in one, it will appear in the other.

Last modified: April 19, 2021
/about
/uses
/notes
/talks
/projects
/podcasts
/reading-list
/spotify
© 2024