Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use netcat to chat in LAN.

PC1 listen port 8080

$ nc -l -p 8080

PC2 connect to PC1:8080

$ nc 8080

Unfortunately, this is not secure. Anyone sniffing packets can intercept my messages.
How can I chat securely?

share|improve this question
up vote 3 down vote accepted

You should use socat instead.

Securing Traffic Between two Socat Instances Using SSL


When you want to connect two socat processes running on different machines and feel that you need to protect the connection against unauthorized access, sniffing, data manipulation etc., you might want to encrypt the communications.

For this purpose socat integrates the OpenSSL library and provides SSL client and server features.


share|improve this answer
great tool. Thanks. – kev Jan 8 '12 at 15:36

SSH would be an easy way. SSH to the machine then use netcat

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .