zipleen / tvheadend-iphone-client

TvhClient - An iOS (iPhone / iPad) client for TVHeadend
http://tvhclient.com/
Mozilla Public License 2.0
113 stars 25 forks source link

Can't connect to server over a wifi without internet connection #271

Open scabrero opened 3 years ago

scabrero commented 3 years ago

I run the TVHeadEnd server in a raspberrypi which also runs hostapd. The raspberrypi is not connected to internet and the DHCP server does not deliver a default gateway nor DNS server to the clients:

image6

In this scenario tvhclient running in an IPad (only wifi, no 3G/4G) does not connect to the server and shows different messages:

image5

image3

image1

image0

Trying to connect with an IPhone works flawlessly because I think iOS fallsback to 3G/4G when the wifi network does not have internet access.

Why is internet access necessary to connect to the server?

zipleen commented 3 years ago

I'm not sure, it doesn't need internet, but I have an idea: you might just have found why this piece of code cannot exist: https://github.com/zipleen/tvheadend-ios-lib/blob/master/tvheadend-ios-lib/TVHJsonClient.m#L121

I'll need to do a test locally to try to replicate this and see if removing that code fixes it

scabrero commented 3 years ago

I'm not sure, it doesn't need internet, but I have an idea: you might just have found why this piece of code cannot exist: https://github.com/zipleen/tvheadend-ios-lib/blob/master/tvheadend-ios-lib/TVHJsonClient.m#L121

I'll need to do a test locally to try to replicate this and see if removing that code fixes it

Thanks, let me know if you need anything from my side.