I'm trying to establish a simple TCP connection between two machines in the same subnet (wireless network). The tool used is netcat.
On machine A, I start a listener:
nc -l -p 4506
On machine B, I fire up the request:
nc -vv <machine_A_ip> 4506
While the output on machine A stays untouched, the output from netcat on machine B prints the following error:
<machine_A> [<machine_A_ip>] 4506 (?) : Connection refused sent 0, rcvd 0
Since machine B is headless, I have access only to tshark as a debugging tool. To debug this issue, I have tried to set the capture filter like this:
tshark -i wlan0 -f 'port 4506'
But tshark won't capture any packages. What am I missing? How do I properly debug the point of failure?