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.

end of storey Last modified: