Closed edmont closed 5 years ago
./demo -u 'coap://[2001::1]:5683'
is supposed to work (single quotes are probably not necessary for bash, but they are for zsh). I did a quick check, and both an IPv6 loopback address (::1
) and a manually assigned 2001::1
worked fine on Ubuntu 18.10 and a local server.
Could you give some more details on what goes wrong?
fe80:*%INTERFACE
).Thanks for your response @dextero.
I was effectively using a link-local address. By the moment I can manage to test my server in IPv4, but any workaround for accepting IPv6 link-local addresses?
As a workaround, you may use socat
to create a tunnel between a non-link-local endpoint (e.g. [::1]:1234
) and the target link-local address:
# on terminal 1:
socat UDP6-LISTEN:1234,fork "UDP6:[$TARGET_IPv6_LINK_LOCAL_ADDRESS]:5683"
# on terminal 2:
./demo -u 'coap://[::1]:1234'
Will that be good enough for your case?
@dextero I think so, thanks!
How to specify an IPv6 server address for the demo arguments? The use of
coap://[addr]:5683
doesn't seem to work properly.