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

Cannot connect to the server from iPhone app #47

Open
ghost opened this issue Feb 26, 2021 · 6 comments
Open

Cannot connect to the server from iPhone app #47

ghost opened this issue Feb 26, 2021 · 6 comments

Comments

@ghost
Copy link

ghost commented Feb 26, 2021

Issue

"Cannot connect to the server, please check that the server is running"

System

  • UDM-Pro
  • nano-HD AP
  • Three separate networks
    • LAN
    • Guest WiFi
    • IoT WiFi
  • MacBook Pro
  • iPhone XS Max

Steps to Repro

  1. On Mac: Install iperf3 via Homebrew.

  2. Start the server with iperf3 -s -D.

  3. Run iperf -c my-ip.
    All systems go!

  4. With server still running, open the iperf3 app on iPhone

  5. Type in my-ip (the same one as the Mac)

ERROR: "Cannot connect to the server, please check that the server is running" error.

Am I testing this correctly, should I be using my wi-fi network IP? The IP that my iPhone shows for WiFI?

Nothing seems to work but, with not very much documentation, there's a chance I'm screwing something up.

Any help is appreciated. Thanks

@pfalstad
Copy link

pfalstad commented Apr 3, 2021

Ok I thought I was having this problem, but in my case I just forgot that I turned the wifi off on my phone. Once I turned it back on, it works fine now.

@ndfred
Copy link
Owner

ndfred commented May 12, 2021

The UI is pretty minimal right now, this error matches iPerf's IECONNECT error and they are suggesting we check herror / perror for details:
https://github.com/ndfred/iperf-ios/blob/master/Source/iperf3/iperf_api.h#L368

Maybe I could surface herror / perror to help diagnose these issues. FWIW this error is different from the server being busy. I would use the local IP for my iPerf server to perform the test.

@miguelpruivo
Copy link

I'm experiencing this issue as well. The server seems to be running properly on my MacOS machine (Big Sur) with no firewall enabled. The iOS app connected to the same network can't connect.

@ndfred
Copy link
Owner

ndfred commented Sep 12, 2021

I need to get back to publishing app updates, right now I am stuck with App Store certs issues (see #41), but once that is done I should be able to land a few improvements

@jiversen
Copy link

Just tried iperf on iPhone for first time.

i have the same problem. The server is running fine and can be contacted by other clients but not this app.

any progress fixing this?

@BlackBird11
Copy link

i had the same issue on windows and had to make a new rule for the firewall for this specific port, if that helps anyone. also with the firewall disabled it worked

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

No branches or pull requests

5 participants