Jump to content

Android app on different subnet not finding server


geotux

Recommended Posts

Hi,

I have a wireless subnet on 192.168.3.0/24. Clients connecting to this network are not allowed to go the internet but I have a firewall rule that allows client on this network to go onto the subnet 192.168.2.0/24 where I have my emby server located. All clients (wired mostly) on the 192.168.2.0/24 connect to emby no problem. My androide phone on the 192.168.3.0/24 does not connect to the server.

Actually sometimes it does, I try to play a song and tells me that I need a Premier acocunt (which I have and is registered on the server with the right key), but the song never plays. Eventually, emby hangs in the background showing a song that is playing but not heard. I kill it, try to reconnect and it fails. The firewall log does not show entries from the phone so makes me wonder if it really is trying to connect to the server.

 

Does the android app need access to the internet as well as to my emby server to work? Could it be that its not working correctly because its working on a subnet that is not allowed on the internet?

 

I hope you can help me out with this as its driving me mad. BTW, I have another, non-android device on the 192.168.3.0/24 that is connecting to the server and I see the entries on the firewall.

 

Regards

Antonio

Link to comment
Share on other sites

darkassassin07

How are you connecting to the server, letting the app automatically find it, or did you manually add its ip?

Link to comment
Share on other sites

Ok, so now I have it connecting to the server. It was a port blocking issue on the firewall. I've now opened all requests to 192.168.2.2:8096 from by LAN. It is now loging in. The problem is slightly different now. I get to log in and browse content without problems. When I go to the Music section or any other and try to play something, it just doesn't play. After insisting a couple of times, it takes me to a page giving me the option to register Emby Premier or sample play for  minute. The sample play doesn't work and I have Emby Premier registered on the server. In fact, sever side, I can access all the premier plugins.

 

I've checked the log and found a couple of rows with the IP of the android device I'm using. This doesn't tell me much other than HTTP Response 200 which I don't know it about. I have Version 3.2.33.0 of the server installed and the 2.9.6.1 version of the android app installed. Any clues on what the issue may be?

 

Cheers.

017-10-08 00:42:44.191 Info HttpServer: HTTP GET http://192.168.2.2:8096/emby/system/info/public. UserAgent: Mozilla/5.0 (Linux; Android 7.1.2; Moto G 2014 Build/NJH47F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.78 Mobile Safari/537.362017-10-08 00:42:44.196 Info HttpServer: HTTP Response 200 to 192.168.3.7. Time: 5ms. http://192.168.2.2:8096/emby/system/info/public 2017-10-08 00:42:44.443 Info HttpServer: HTTP GET http://192.168.2.2:8096/emby/users/public. UserAgent: Mozilla/5.0 (Linux; Android 7.1.2; Moto G 2014 Build/NJH47F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.78 Mobile Safari/537.362017-10-08 00:42:44.445 Info HttpServer: HTTP GET http://192.168.2.2:8096/emby/Branding/Configuration. UserAgent: Mozilla/5.0 (Linux; Android 7.1.2; Moto G 2014 Build/NJH47F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.78 Mobile Safari/537.362017-10-08 00:42:44.449 Info HttpServer: HTTP Response 200 to 192.168.3.7. Time: 5ms. http://192.168.2.2:8096/emby/users/public 2017-10-08 00:42:44.450 Info HttpServer: HTTP Response 200 to 192.168.3.7. Time: 5ms. http://192.168.2.2:8096/emby/Branding/Configuration 
Link to comment
Share on other sites

The app contacts our servers directly so it will need an active internet connection. If the issue persists check and ensure that nothing is blocking access to mb3admin.com.

Link to comment
Share on other sites

I see ... so that's the problem. Is that to check that the Premier subscription is active or are you spoofing my phone/server? :) Are you saying that if my internet connection was down it would not work?

 

Seriously,  I want to minimise access to the internet from my phone when its' logged to the server. Is there a way I can craft a firewall rule that only allows contacting your server i.e. which IP and which port does it contact?

Link to comment
Share on other sites

Are you saying that if my internet connection was down it would not work?

No, because this only happens once in a while and we save the result locally.

Link to comment
Share on other sites

Update. I seem to have cracked it, well at least its working now. I created a rule to let the source IP (android phone where the Emby app is installed) connect to 173.230.139.54 which appears to be associated to Linode.com, a hosting service. I guess these are the servers where you are hosting your Emby services? I have no other explanation otherwise. The conclusion is supported also by the fact that the graphics is very similar to that of the Emby homepage :)

Link to comment
Share on other sites

darkassassin07

Out of curiosity why does the app need to contact public emby servers? Is that solely to verify the premier subscription?

Link to comment
Share on other sites

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...