-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udp mode doesn't work #371
Comments
Does the server have to be in udp mode too? |
Server only has to be running. I have it working with UDP although I question the jitter numbers I get from it. Make sure firewall is not blocking UDP port. |
I was running into this problem as well and spent hours checking firewalls and routing and everything was good. I started writing up a problem description when I found out what was going on: iperf3 was working with IPv4 TCP, IPv4 UDP, IPv6 TCP, but not IPv6 UDP. I would use this command line on the server: iperf3 -i1 -s -p 8080 The client would hang and the server would print this out: iperf3 -i1 -s -p 8080 Server listening on 8080 Accepted connection from 2620:222:10:200:5851:f08:8d7c:806e, port 49710 Here's what's going on: the client is trying to connect to the server with the server's dynamic IPv6 address: 2620:222:10:200:823f:5dff:fe08:f716. When the server is trying to connect to the client, it's using the server's latest temporary dynamic IPv6 address: 2620:222:10:200:342e:b936:bd37:a649. The client then refuses the connection from the server. This article has a lot of information about temporary dynamic IPv6 addresses: If I change the client to use this same temporary dynamic IPv6 address, iperf3 works fine. iperf3 -c 2620:222:10:200:342e:b936:bd37:a649 -i 1 -6 -p 8080 -u Server listening on 8080 ^[[AAccepted connection from 2620:222:10:200:5851:f08:8d7c:806e, port 42991 If it is possible, it would be good to have the iperf server try to use the same IPv6 address as the one the client is trying to connect with. Otherwise people will have weird problems and think it doesn't work. If changing the behavior is not possible, could you put it somewhere in the help or the documentation? I'm good now that I know what's going on, but I'm sure this behavior is going to cause a lot of headaches for other people. |
@rlusian1 what makes you think its not working? Looks alright to me... |
I'm running the example client code (found in examples folder).
TCP mode works fine.
When I add
set_protocol(test, Pudp);
to make it UDP mode I get error:error - unable to read from stream socket: Connection refused
Is this a bug?
According to this old bug report, the bug was fixed: #26
The text was updated successfully, but these errors were encountered: