Netcat not working? - Raspberry Pi Forums


hi guys, check udp server (192.168.10.3:5330) using netcat on pi (192.168.1.2).
run http server on port 80 test:

code: select all

 nc -zv -w5 192.168.10.3 80 &> /dev/null && echo "online" || echo "offline"
correctly "online" output.
simulate server offline block tcp traffic 192.168.10.3 on port 80 (my http web interface).
correctly "offline" output.

let's try on udp server:
nc -zvo -w5 192.168.10.3 5330 &> /dev/null && echo "online" || echo "offline"[/code]

"online" message.
change firewall rule block udp traffic on port 5330 192.168.10.3; still "online" output after timeout.
on router can see traffic counter increasing firewall rule; @ same time wireshark shows no traffic incoming on server.
isnt'it strange??
what's wrong?
thanks.



raspberrypi



Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support