Netcat/nc messages not send/received on either computer

0

I have two computers (both running Ubuntu) in the same network. They are able to ping each other successfully. Their IPs are:

Computer 1: 172.16.10.59

Computer 2: 172.16.10.72


The following works: Listening on Computer 1 on a random port (let's say 1234), and establishing a connection from Computer 2 to Computer 1. I can use netcat like a chat program then (as expected).

On computer 1:

$ nc -l 1234

On computer 2:

$ nc 172.16.10.59 1234

But vice-versa doesn't work: Listening on Computer 2 on the same port (1234), and establishing a connection from Computer 1 to Computer 2.

On computer 2:

$ nc -l 1234

On computer 1:

$ nc 172.16.10.72 1234

All that happens is that netcat runs on both computers, but when I type in a message in either computer and hit enter, it isn't displayed on the other computer at all.

I'm quite lost in what could be wrong here, and I couldn't find a working solution online so far. Is anyone here able to help me? Thank you!

Nooyi

Posted 2019-07-24T11:32:35.127

Reputation: 1

Firewall on Computer 2? – Kamil Maciorowski – 2019-07-24T11:46:26.737

I already deactivated ufw and sudo ufw status returns "Status: inactive" – Nooyi – 2019-07-24T11:53:52.040

Could something else be running on port 1234 on the second computer? A suspended netcat process perhaps? – Cliff Armstrong – 2019-07-24T15:27:38.087

@anyone who comes across the same problem, Shubham Abrol's answer to this question worked for me https://askubuntu.com/questions/572848/network-manager-not-working

– Nooyi – 2019-07-26T11:03:41.563

No answers