Skip to content
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

Connection refused when binding to specific interface #636

Closed
rob-scheepens opened this issue Sep 8, 2017 · 2 comments
Closed

Connection refused when binding to specific interface #636

rob-scheepens opened this issue Sep 8, 2017 · 2 comments

Comments

@rob-scheepens
Copy link

Context

Running iperf3 on two Windows Server 2016 hosts.

  • Version of iperf3:
    iperf 3.1.3
    CYGWIN_NT-10.0 rob-254-2 2.5.1(0.297/5/3) 2016-04-21 22:14 x86_64
    Optional features available: None

  • Hardware:
    CPU: E2580v3
    NIC: Intel 82599, PCI\VEN_8086&DEV_10FB&SUBSYS_061115D9&REV_01\0CC47AFFFFBC59F600

  • Operating system (and distribution, if any):
    Windows Server 2016. I know it says this is not supported, but I did not see such message on iperf.fr, so I'll take my chances.

  • Other relevant information (for example, non-default compilers,
    libraries, cross-compiling, etc.):
    n/a

Bug Report

  • Expected Behavior
    Get connected to the specific interface to which iperf3 server is bound to.

  • Actual Behavior
    Connection refused to client.

  • Steps to Reproduce

C:\>iperf3 -d -s -B 10.60.7.222
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

C:\>iperf3 -d -c 10.60.7.223 -p 5201
iperf3: error - unable to connect to server: Connection refused

I can see server listening correctly:
TCP 10.60.7.222:5201 0.0.0.0:0 LISTENING 7292

I ensured Windows Firewall is off, and even explicitly allowed iperf3.exe in there. When not using -b option, iperf3 works fine.

@bmah888
Copy link
Contributor

bmah888 commented Sep 18, 2017

The -B option on the server and the -c option on the client need to match for this to work. In your examples you had above, you had the server listening on 10.60.7.222 and the client trying to connect to 10.60.7.223. Is that really what you meant to do?

(FYI, iperf.fr isn't affiliated with ESnet, and we at ESnet can't take any responsiblity for the Windows or other executables they post. We've actually been trying to get in touch with them, for friendly reasons, but have not been successful.)

@rob-scheepens
Copy link
Author

@bmah888 : looks like I indeed mixed up IPs. Thanks for the correction!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants