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: 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.
run http server on port 80 test:
code: select all
nc -zv -w5 192.168.10.3 80 &> /dev/null && echo "online" || echo "offline"
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
Post a Comment