Jump to content

Android app will not connect to server if wifi is on (at home)


Recommended Posts

Posted

The app will not connect to the server if WiFi is connected to the phone. I think this is a router security feature. But on the app, you should point this out.

Posted

How would this be a wifi security feature? If you're local it shouldn't be an issue. 

Are you saying that if you disable WiFi you can connect to your server through the Internet?

Posted

Yes, exactly. But phone will connect via wifi to my Mac, so I think this may be an android client bug. I have a Galaxy S20 Ultra.

pwhodges
Posted

Presumably your phone is using your server's external Internet address.  Whether or not this will work within your LAN depends on whether your router does "loopback" (aka "hairpinning").

If you cannot use loopback (in some routers it is configurable), possible alternatives are (1) to use your domain name in the phone, and run a DNS server in your LAN which will report the local address for it when the phone is on your network; or (2) add a second server in your phone' client using your server's local address (actually the same server, of course), and switch between the servers as necessary.

Paul

Posted (edited)

I tried both the external (https://XXXXX.dyndns.org  - a dynamic dns address) and internal address (192.168.1.5), and neither worked over WiFi. I got the same result using the Emby iPad app (which ONLY has WiFi). Roon, which is on the same server connects to everything. And my firewall can't be an issue because I can connect to Emby using my phone if the WiFi is turned off.

Edited by CBers
Removed DDNS URL.
pwhodges
Posted

You say Roon is accessible from the same devices via wifi? 

Hmm; then it can't be that the wifi is divided from the hard network - which is another thing routers can often do.

Need more thought...

Paul

Posted

I am still thinking it is the Emby clients.. The server is also accessible from a web page on the android phone with the WiFi on.

Happy2Play
Posted

Don't know this client but sounds like the client/app has some bad cached connection data.  As jarome has stated a browser on same device functions.

Posted (edited)

No, because I did a clean install on my iPad, and the same issue appears. Or could it be an issue with my OpenSUSE LEAP 15.3 server? Can I get the new beta version to try?

Edited by jarome
Happy2Play
Posted

Keep it simple, you have stated in a browser LAN and WAN connection works, correct?

But at the same time every client app should see the Servers LAN and WAN address with it queried the server.

Posted

correct. So it is baffling. Does the Emby server treat https browser and client connections differently?

Happy2Play
Posted
8 minutes ago, jarome said:

correct. So it is baffling. Does the Emby server treat https browser and client connections differently?

Not positive but believe app vs browser will look at the certificate differently but devs will have to comment on that.

Posted

Correct because the Emby web app doesn't look at your certificate, it's the browser that handles this part of the connection. For our iPad app, it's possible that this is your issue:

 

Posted

Emby has local network access. It died that by itself I guess. But today, the iPad app worked!

 

Posted
6 minutes ago, jarome said:

Emby has local network access. It died that by itself I guess. But today, the iPad app worked!

 

Are you all set now?

Posted

No. Android still does not work on WiFi

 

Posted

Well, today Android IS working, so close this.

 

Posted

Thanks for the feedback.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...