I am trying to send one message from one computer in my home LAN to another in the same LAN using netcat. This is the code I am running in bash: In PC1
nc -l -p 31337
In PC2 (Private IP Address 192.168.1.10)
nc 192.168.1.10 31337
The problem is that when I send a message in one terminal, nothing seems to appear on the other PC and vice versa. Doing the same thing on the same PC, but with two terminal windows open, everything works fine. However there is no point in sending one message from one terminal to another in the same computer. What I want is to send from one PC in my home LAN to another.
PS I am working on Ubuntu 16.04.4 on both PCs
nc -vvv ...
?