Jump to content

Android App Can't Connect to Server


Recommended Posts

Android App version: 2.6.50, latest from Google Play atm.

Emby server version: Latest Stable AND Beta releases from emby downloads page for Windows.

Android Device: HTC One M8 w/ 6.0 OS

Windows Server: Windows 10 OS

 

Problem is when I try to connect from emby android app to windows server, I tried with and without emby connect btw, app shows this error message:

 

We're unable to connect to the selected server right now. Please ensure it is running and try again.

 

Emby server runs on windows pc and I can accees it via browser on android.

 

When I try to manually enter the IP,  app shows the same error message instantly. (Auto search waits a bit before showing it)

 

Server logs shows these lines that are related:

 

2016-04-30 09:11:30.5700 Info HttpServer: HTTP GET http://10.0.0.32:8096/emby/system/info/public. UserAgent: Mozilla/5.0 (Linux; Android 6.0; HTC One_M8 Build/MRA58K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/49.0.2623.105 Mobile Safari/537.36

2016-04-30 09:11:30.5700 Error NotFoundHttpHandler: [::ffff:10.0.0.32]:8096 Request not found: /emby/system/info/public
2016-04-30 09:11:30.5700 Info HttpServer: HTTP Response 404 to 10.0.0.29. Time: 0ms. http://10.0.0.32:8096/emby/system/info/public

 

Any help appreciated.

Edited by tahaea1
Link to post
Share on other sites

Hi, can you try the online web app at app.emby.media? Let me know the result of that. Thanks.

Hi. Online page shows up correctly, can login and list videos. Video playing fails with Chrome Android tho.

Link to post
Share on other sites
tahaea1

What do you mean fails? can you please provide the server transcoding log?

 

http://emby.media/community/index.php?/topic/739-how-to-report-a-problem/

 

thanks.

Well, it looks like browser URL isn't working anymore too. Video errors were related to encoding probably but i can't even get to that now. https://dl.dropboxusercontent.com/u/49778084/server-63597730438.txt for server logs. 10.0.0.26 lines are my phone, 10.0.0.31 is server

Edited by tahaea1
Link to post
Share on other sites
tahaea1

Hi, I would take a look at our wiki on Connectivity. Please try the troubleshooting steps there and let us know how it goes. Thanks!

Opened port 8096 both inbound and outbond, scanned for viruses. Nothing.

Edited by tahaea1
Link to post
Share on other sites
Luke

Can you please elaborate more? Did every test listed in that document pass? If no, which ones did not? Thanks.

Link to post
Share on other sites
  • 3 months later...

I have ended up here with searching "Request not found: /emby/system/info/public" in Google. Thats why I think its ok to resurrect this thread.

Basically I have the same problem for both Android and iOS apps. Everything is working via WEB Browser. Local or External. Even my reverse proxy is working with external connection. But for narrow it down we can focus on local  access only.

0. Server and mobile devices are in same local network. (192.168.1.x)

1. Firewall tests ok.

2. AV check ok (My computer is clean installed Windows 10 x64)

3. Chrome or Safari is working fine with http://192.168.1.10:8096. and my external link https://emby.mydomain.com:443.(reverse proxied) Kodi is also working with Emby add-on.

4. But If I manually add same server in both Android and iOS app during mobile app setup I got "We're unable to connect to the selected server right now. Please ensure it is running and try again."

5. Partial log contains 404 not found errors.

2016-08-26 20:57:55.1845 Info HttpServer: HTTP Response 200 to 176.232.xx.xx Time: 16ms. http://127.0.0.1:8096/emby/System/Configuration
2016-08-26 20:57:55.2001 Info HttpServer: HTTP Response 200 to 176.232.xx.xx Time: 31ms. http://127.0.0.1:8096/emby/System/Logs
2016-08-26 20:57:56.4502 Info HttpServer: HTTP GET http://192.168.1.10:8096/emby/system/info/public. UserAgent: Mozilla/5.0 (Linux; Android 6.0.1; SM-G935F Build/MMB29K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.98 Mobile Safari/537.36
2016-08-26 20:57:56.4502 Error ServiceStackHost: [::ffff:192.168.1.10]:8096 Request not found: /emby/system/info/public
2016-08-26 20:57:56.4502 Info HttpServer: HTTP Response 404 to 192.168.1.125. Time: 0ms. http://192.168.1.10:8096/emby/system/info/public
2016-08-26 20:57:56.4815 Info HttpServer: HTTP GET http://127.0.0.1:8096/emby/system/info/public. UserAgent: Mozilla/5.0 (Linux; Android 6.0.1; SM-G935F Build/MMB29K; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/52.0.2743.98 Mobile Safari/537.36
2016-08-26 20:57:56.4815 Error ServiceStackHost: [::ffff:127.0.0.1]:8096 Request not found: /emby/system/info/public
2016-08-26 20:57:56.4815 Info HttpServer: HTTP Response 404 to 176.232.xx.xx Time: 0ms. http://127.0.0.1:8096/emby/system/info/public

Full log:

http://pastebin.com/P46tY1QY
Edited by denethor
Link to post
Share on other sites

Hi, try it without a proxy and see if the issue persists. I can't reproduce any of that I'm afraid. No problem found here.

Link to post
Share on other sites

Hi, try it without a proxy and see if the issue persists. I can't reproduce any of that I'm afraid. No problem found here.

 

As I told you I am just focusing on local access no proxy involved my above test.

 

192.168.1.125 (my phone) tries to access 192.168.1.10:8096 directly. No proxy , pure direct connection.

 

ps:

MyProxy is running on 192.168.1.10:80 (But I have just stopped my Web Server no make sure. Still have the problem.)

Edited by denethor
Link to post
Share on other sites
speechles

When you say the web client works, you mean on the same machine as the server?

Is your windows 10 set to public or private network?

 

Sent from my Nexus 7 using Tapatalk

Link to post
Share on other sites

I believe you that you're having a problem, but it has to be something specific to your configuration because i cannot reproduce it.

Link to post
Share on other sites

When you say the web client works, you mean on the same machine as the server?

Is your windows 10 set to public or private network?

 

 

 

 

Yes as I noted above:

 

Firefox or Google Chrome from 192.168.1.125 (Android Phone) can connect to 192.168.1.10:8096 directly. Which is my Windows 10 Emby Server.

​But with the same phone same & network conditions I cannot connect to same server with the Emby Android App. 

 

 

Network type is Private.

Link to post
Share on other sites
  • 4 weeks later...

I believe you that you're having a problem, but it has to be something specific to your configuration because i cannot reproduce it.

Today I noticed something new. If I run my setup as Windows service I got successful response generated by ServiceStack from http://127.0.0.1:8096/emby/system/info/public.

 

Since the service runs with LocalSystem account this time it fails to access libraries on my NAS. (My NAS shares requires auth) If i run Emby service with my users instead of local service, I got 404 Not found again from http://127.0.0.1:8096/emby/system/info/public.

 

It feels like it is something to do with my Windows user profile/user but I can't figure it out. Maybe a permission thing that blocks servicestack to generate info about the Emby server? Is this reminds you any bell?

 

By the way my server cannot keep authentication tokens. If i hit refresh button on my browsers it returns to login page. But after the login I can browse my server as long as I want. as soon as I hit refresh I back to login page. This symptom also goes away if run Emby as a Windows server with local system account.

 

Hoping that this new clues may reminds something since the Kodi addon moved to this I have no client left to playback :(

 

One more note:

 

My installation directory copied from my old computer. Whole c:\users\myusername\Appdata\roaming\mediabrowser-server directory copied to same directory on new computer.

 

(Using the same username password on the new computer)

Edited by denethor
Link to post
Share on other sites

Kodi moved to what exactly?

 

 

Sent from my iPhone using Tapatalk

 

 

After you have implemented Emby Connect to Add-on, Add-on  checks for the http://127.0.0.1:8096/emby/system/info/public link It got 404 not found from server  and throw an exception and quits:

 

Rolled back to 2.2.19.

Relevant part of the log:

18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> Begin connectToServers, with 1 servers
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> begin connectToServer
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> beginning connection tests
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> testing connection mode 2 with server Altuns
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> tryConnect url: http://192.168.1.10:8096/emby/system/info/public
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> DEBUG:: ConnectionManager requesting {'url': u'http://192.168.1.10:8096/emby/system/info/public', 'verify': False, 'timeout': 8, 'headers': {'X-Application': 'Kodi/2.2.32', 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Accept': 'application/json'}}
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ConnectionManager response status: 404
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ERROR:: 404 Client Error: Not Found for url: http://192.168.1.10:8096/emby/system/info/public
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ERROR:: test failed for connection mode 2 with server Altuns
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> testing connection mode 0 with server Altuns
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> tryConnect url: http://192.168.1.10:8096/emby/system/info/public
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> DEBUG:: ConnectionManager requesting {'url': u'http://192.168.1.10:8096/emby/system/info/public', 'verify': False, 'timeout': 8, 'headers': {'X-Application': 'Kodi/2.2.32', 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Accept': 'application/json'}}
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ConnectionManager response status: 404
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ERROR:: 404 Client Error: Not Found for url: http://192.168.1.10:8096/emby/system/info/public
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ERROR:: test failed for connection mode 0 with server Altuns
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> testing connection mode 1 with server Altuns
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> tryConnect url: http://192.168.1.10:8096/emby/system/info/public
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> DEBUG:: ConnectionManager requesting {'url': u'http://192.168.1.10:8096/emby/system/info/public', 'verify': False, 'timeout': 20, 'headers': {'X-Application': 'Kodi/2.2.32', 'Content-type': 'application/x-www-form-urlencoded; charset=UTF-8', 'Accept': 'application/json'}}
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ConnectionManager response status: 404
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ERROR:: 404 Client Error: Not Found for url: http://192.168.1.10:8096/emby/system/info/public
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> ERROR:: test failed for connection mode 1 with server Altuns
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> Tested all connection modes. Failing server connection.
18:06:23 T:6408  NOTICE: EMBY.connectionmanager -> resolving connectToServers with result['State']: {'ConnectUser': None, 'State': 4}
18:06:23 T:6408  NOTICE: EMBY.connectmanager -> Started with: {'ConnectUser': None, 'State': 4}
18:06:23 T:6408  NOTICE: EMBY.initialsetup -> DEBUG:: Initial setup called
18:06:23 T:6408   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('Servers',)
                                            Traceback (most recent call last):
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 306, in <module>
                                                Service().service_entry_point()
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\service.py", line 101, in service_entry_point
                                                initialsetup.InitialSetup().setup()
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\initialsetup.py", line 40, in setup
                                                if self._server_verification() and settings('userId'):
                                              File "C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\initialsetup.py", line 93, in _server_verification
                                                for server in current_state['Servers']:
                                            KeyError: ('Servers',)
                                            -->End of Python script error report<--

Edited by denethor
Link to post
Share on other sites
Angelblue05

Ok, thanks for reporting... Where do you see 127.0.0.1? In the server info migration, it should have added the address that was already saved in the addon settings and use that to connect to your server. It seems your server is unreachable at 192.168.1.10:8096. Can you confirm the server address that should be used?

 

 

Sent from my iPhone using Tapatalk

Edited by Angelblue05
Link to post
Share on other sites

Ok, thanks for reporting... Where do you see 127.0.0.1? In the server info migration, it should have added the address that was already saved in the addon settings and use that to connect to your server. It seems your server is unreachable at 192.168.1.10:8096. Can you confirm the server address that should be used?

 

 

 

I used 127.0.0.1 from Web browser on Emby Server installation host just for the proof of I am getting 404 Not found for URL "/emby/system/info/public".

 

​My original configuration in add-on config is 192.168.1.10 on my players. Server is definitely reachable because it worked right away after downgrading to 2.2.19 without doing any configuration changes in addon config.

 

Bottom line use server is reachable but returns "404 Not found" to clients for /emby/system/info/public URL.

2016-09-18 20:00:58.6664 Error ServiceStackHost: [::ffff:192.168.1.10]:8096 Request not found: /system/info/public
Edited by denethor
Link to post
Share on other sites

Removing plugins did not make any difference :(

 

I have mentioned ServiceStack because I made a clean temporary installation on a Virtual Machine and listed ServiceStack supported operations and there was a "GetPublicSystemInfo" in list on that installation and it can respond to "GET /System/Info/Public" HTTP calls.

 

As far as I understand this service responds to "GET /System/Info/Public". Since this service is not available in my setup my server returns 404 Not found to clients that calls that URL. (http://my.emby.address:8096/System/Info/Public) But I am not developer and I am not sure what this is anyway :)

Link to post
Share on other sites

Ok I am getting close. I checked the GetPublicSystemInfo in more details. This service responds following GET Requests:

GET /emby/System/Info/Public
GET /emby/emby/System/Info/Public
GET /System/Info/Public
GET /mediabrowser/System/Info/Public 

With the first 3 I got "404 Not" found but my server returns HTTP-200 successfully to http://localhost:8096/mediabrowser/System/Info/Public.

Since my server keep getting updated for a very very long time it may still requires /mediabrowser/* for some URL requests. Now; any idea?

Edited by denethor
Link to post
Share on other sites

No idea other than some customized network configuration, and/or if you're running an old version of the server.

 

 

 
Ok nailed it!
Good old Turkish char set problem with "I". We have I,İ,i,ı. 
Server was responding HTTP 200 to 
GET /mediabrowser/System/Info/Public
GET /mediabrowser/System/ınfo/Public 
but HTTP 404 to
GET /mediabrowser/System/info/Public.
 
Since all of your apps (android, iOS, Kodi Add-on) uses "/emby/system/info/public" all was failing.
 

 

I don't why it does not bother with the "i" in "medibrowser/*" or in "Public" but with the "i" in the letter "/info/*"  :o
Now I changed my Regional Settings->Formats to English all clients started to work.
Edited by denethor
  • Like 1
Link to post
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...