UncleSax
UncleSax

Reputation: 148

openwrt netcat do not work

I'm having some issue on netcat. while on my mac the following command works, it doesn't on openwrt

echo -n 0 | nc -u -w0 <ip> <port>

The ip and port are correct. It doesn't even give an error, but return the usage of netcat itself.

Any suggestion? Thanks in advance!

Upvotes: 0

Views: 2125

Answers (1)

UncleSax
UncleSax

Reputation: 148

The openwrt installed on the arduino doesn't provide all the options as the basic nc: the usage returned was a "can't connect" error in disguise. Also the direct connection works as usual (without all the arguments).

echo 0 | nc <ip> <port>

Upvotes: 0

Related Questions