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.

Last modified: April 19, 2021
© 2024