I have two Linux machines connected via Ethernet. I tried to verify that packets were being sent from one to the other using netcat. On the listening machine, I used the following command:
nc -l 10000
On the sending machine, I used:
nc -4u <ip address of listening machine ethernet port> 10000
When I tried to send something, I would get the following message: "nc: Write error: no host path"
When searching for a problem, I found suggestions for temporarily disabling the firewall. I did this with the commands:
/etc/init.d/iptables save /etc/init.d/iptables stop
However, now when I try to send from one machine to another, I get the following message: "nc: Write error: connection rejected"
Any ideas what is going on?
source share