Thursday, May 2, 2024
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 5808  / 2 Years ago, tue, november 1, 2022, 2:06:48

I want to know that how we can chat between 2 ubuntu machines in a network.



there are many messengers but we are prohibited from using those who send the files.



any command line chat messenger for 2 ubuntu in network? or GUI will also work.


More From » software-recommendation

 Answers
5

The simplest way I can think would be using netcat



try this on your own machine
in one terminal:



netcat 8080 -l


(this will be the server since we used -l to set it in listen mode)



in the other terminal:



netcat localhost 8080


(this will be the client connecting to the server)



try typing in one of the windows.
You can select any port you want for client / server, but privileged ports (below 1024) require root access on the server)



Replace localhost, on the client, with the ip / dns name of the sever you want to connect to if you want to try this over a network


[#39353] Tuesday, November 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
scusaper

Total Points: 335
Total Questions: 111
Total Answers: 119

Location: Belize
Member since Mon, Jun 20, 2022
2 Years ago
;