ndfred / iperf-ios

iPerf 3 library and app for iOS
Other
186 stars 26 forks source link

tvOS support #33

Open onyx4 opened 4 years ago

onyx4 commented 4 years ago

Would it be possible to make the app available for Apple TV? I have an Apple TV connected using Ethernet over Power and would like to test the speed using iperf3. That would be also useful validating the speed of the wifi/ethernet on Apple TV with a local network source. Currently only speedtest app is available on Apple TV.

aptonline commented 4 years ago

I too would be interested. Not sure how easy it would be easy to compile for tvOS.

ndfred commented 4 years ago

That would be nice for sure, a few differences that would make it a challenge to implement:

Realistically I don't think I'll have time to work on an Apple TV version soon. I would like to rewrite the app in Swift / SwiftUI and have it be available on macOS as well, at which point the gap to a tvOS version might be narrower.

In the meantime, I wonder if you could get a local SpeedTest server set up? Seems unlikely to be possible but you never know.

aptonline commented 4 years ago

@ndfred Thanks for your reply. Great points you raise there. I may fork your repository and have a play :).

With regard to local SpeedTest server I didn't realise SpeedTest could be used for local networks or is that setting up a server for external use?

aptonline commented 4 years ago

Out of interest I found this post of the dev forums, basically looks like you can add tvOS support by adding an additional target and then design the UI in storyboard. The code should work as is:

https://developer.apple.com/forums/thread/95890

ndfred commented 4 years ago

@aptonline: if you are looking for a reason to build a tvOS app, by all means fork the project and go for it! The backend is separated enough from the frontend that it shouldn't be too much of a hassle. I didn't use Storyboards or NIBs so you won't have IBOutlets and all there for you, but you can always write your own view controller to add these.

The hold up for me is the time it would take to make the interface good / reliable enough that I would feel comfortable publishing it to the App Store.

As an aside: are you using Ethernet for your Apple TV? If you care a lot about its network performance you probably already are, which means you are pretty much guaranteed gigabit speeds. I use SmokePing to monitor the connection quality, and ran Speedtest at some point to make sure I am seeing Gigabit speeds, and feel confident that the Apple TV is set up correctly. WiFi is a different matter, which is where I have found iPerf to be helpful.

I haven't been digging too much into setting up a Speedtest server, but at first glance it looks like that's not possible unless the server is public, which obviously we don't want if it is for local use.

aptonline commented 4 years ago

Also with regard to Ethernet and Wifi, if an Ethernet cable is connected this take precedent over wifi there doesn't seem to be a way to use both at once, that's how it works for me at least.

aptonline commented 4 years ago

@ndfred Yes I am using Ethernet but other Powerline (TP-Link plugs) so want to make sure I get good speeds but this in reliant on electrical infrastructure.

onyx4 commented 4 years ago

Same here, I use Ethernet but over powerline at the TV location. So I wanted to compare with a local iPerf server if my WiFi 5Ghz or Powerline was faster.

Thanks, Christian

On Jun 29, 2020, at 7:33 AM, aptonline notifications@github.com wrote:

 @ndfred Yes I am using Ethernet but other Powerline (TP-Link plugs) so want to make sure I get good speeds but this in reliant on electrical infrastructure.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ndfred commented 4 years ago

That makes sense, I've always found a way to run Ethernet after having a terrible experience with Powerline, but that doesn't work everywhere. About network interfaces, I am indeed not seeing my Apple TV connected over WiFi when it is wired so that might not be an issue. Another interesting thought is that an Apple TV could become a wired iPerf server that WiFi clients could connect to (if it isn't Powerline). I'll think about it, again would be happy if you beat me to it!

aptonline commented 4 years ago

Unfortunately I've not had the opportunity to look at this :( still very interested though as I think it would fill a need for local network speed tests as there is nothing like it on the App Store for AppleTV.

jgstew commented 2 years ago

The use case I have and went looking for iperf on AppleTV is that I want to test my local WiFi speed to the Apple TV that is connected via Ethernet or test WiFi to WiFi. I'm in an Airbnb at the moment and it would be helpful for me to compare both options for viability of airplay mirroring from my laptop to the AppleTV and just in general.

pcmike commented 3 months ago

Just dropping a comment here in 2024 to say I would love to see iperf3 on tvOS. Always nice to test “ethernet connectivity” to an Apple TV that in reality is fed by other non traditional means (MoCA in my case). 👍🏻