Something like telnet, but “listen on”, not “connect to”

listenertelnet

With the telnet program one can connect to any TCP port on any host, but is there a way to listen on some port on current host?

i.e.

1) on host a:
telnet listen 12345

2) on host b:
telnet host_a 12345

I don't want any service behind the listening side, just connection and whatever typed to be transferred as is both ways.

I know I can already do the 2), but is there any way to achieve the 1)? I'm interested in both Windows and Linux solution.

Best Answer

The usual tool for this is something called netcat. It's available in most Linux distros, and may even be installed by default in some (the command is nc). There are even ports for Windows, but nearly every antivirus package on the planet considers it deeply suspicious due it's use in malware which makes it hard to download and use.

Related Topic