error: write udp sendto: no route to host
Ehco1996 opened this issue · 1 comments
Ehco1996 commented
Describe the bug
I want to test udp tunnel and proxy ,with iperf3 , but failed with this "sendto: no route to host"
To Reproduce
-
run iperf3 server
iperf3 -s
-
run shadowsocks server
go-shadowsocks2 -verbose -s "ss://chacha20-ietf-poly1305:hellotheworld4@[0.0.0.0]:1025" -udp
-
run shadowsocks tunnek
go-shadowsocks2 -c 'ss://chacha20-ietf-poly1305:hellotheworld4@[0.0.0.0]:1025' -tcptun :1090=localhost:5201 -udptun :1090=localhost:5201 -verbose
-
use iperf3 clinet to test udp
iperf3 -c 0.0.0.0 -p 1090 -u
-
you can see the error log
Expected behavior
iperf3 test success
Screenshots
anyone could help? thanks
Tigerfyj commented
In the step 4, you should use the "localhost" as the address.
iperf3 -c localhost -p 1090 -u