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 1234

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

© 2021