Jump to content


Photo

IOS app unable to connect to remote server

IOS Iphone

  • Please log in to reply
24 replies to this topic

#1 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 14 June 2018 - 03:35 PM

Hi,

 

In the past few days IOS users are unable to connect to my server. When they add the host/port and press connect they immediately get the message "Connection Failure, we are unable to connect to ..."  

 

My server is behind a reverse proxy and has a letsencrypt cert. Any (mobile)browser (including safari on IOS) or Android app can connect without problems.

 

Emby server version: 3.3.1.0 (Running in a iocage freenas jail)

 

Iphone 8: IOS 11.3 Emby App 1.51

Iphone 6S: IOS 11.4 Emby App 1.51

 

I checked the emby server logs but nothing gets added to the log when an IOS client tries to connect.

 

However I noticed in the nginx error log the following string only when an IOS device tries to connect

 

2018/06/14 20:53:14 [error] 8433#0: *8201 open() "/etc/nginx/html/mediabrowser/users/cf6a9ef8632d4c8bbca780e29f6a3691" failed (2: No such file or directory), client: XX.XXX.XX.XX, server: XXXXXXXXXXXXXX.XXXXXXXXXX.org, request: "GET /mediabrowser/users/cf6a9ef8632d4c8bbca780e29f6a3691?format=json HTTP/1.1", host: "XXXXXXXXXXXXXXXXXX.XXXXXXXXXXXXXXX.org"

 

 

Any suggestions?

 

PS: iPad seems to work but I currently don't know what model, ios version and emby app version. I'll update later.

 

EDIT: iPad is on,iOS 10.3.1 and emby app is 1.4.9


Edited by qkjsdvflmksvclkx, 14 June 2018 - 05:32 PM.


#2 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 14 June 2018 - 06:14 PM

Update:

 

The user with the ipad updated to emby 1.5.1 and is now unable to connect! Seems like an issue with the new version of the ios app.



#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 136138 posts
  • Local time: 04:58 AM

Posted 14 June 2018 - 06:19 PM

Hi, you're saying they updated from 1.4.9 to 1.5.1?



#4 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 14 June 2018 - 06:21 PM

@Luke

 

Yes they did.



#5 Sushinor OFFLINE  

Sushinor

    Newbie

  • Members
  • 2 posts

Posted 14 June 2018 - 06:25 PM

Hi,

I got the exact same issue! I got three ios devices, two of them are on another ios version, however the moment I update emby ios app to the latest version I receive the exact same error on all three devices.

Certainly an issue to look into!

#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 136138 posts
  • Local time: 04:58 AM

Posted 14 June 2018 - 10:39 PM

Are you able to connect using the online web app with the same ios device?

 

http://app.emby.media

 

Thanks.



#7 Sushinor OFFLINE  

Sushinor

    Newbie

  • Members
  • 2 posts

Posted 15 June 2018 - 03:19 AM

I just tested with 2 out of three devices and I can’t..same scenario I dont even access the server it self. The moment I want to make a connection it says immediately ‘Connection failure’.... without prompting credential screen.

No logs are incoming as it can’t even go that far.

Edited by Sushinor, 15 June 2018 - 03:21 AM.


#8 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 15 June 2018 - 03:57 AM

I confirm the same behavior.

http://app.emby.media is not working on IOS browser. But it's failing on laptop and android chrome browser too.



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 136138 posts
  • Local time: 04:58 AM

Posted 15 June 2018 - 11:19 AM

Can you try it again on your laptop and this time open the Chrome console debugger. Please let me know if the Chrome console shows any errors. Thanks.



#10 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 16 June 2018 - 11:48 AM

5b253119d65cc_http_calls.png

 

I hope this helps.



#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 136138 posts
  • Local time: 04:58 AM

Posted 16 June 2018 - 12:47 PM

can you do this again, and then click on that red public entry and show a screenshot of that? thanks.



#12 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 16 June 2018 - 01:17 PM

Here you go :)


Edited by qkjsdvflmksvclkx, 16 June 2018 - 01:26 PM.


#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 136138 posts
  • Local time: 04:58 AM

Posted 16 June 2018 - 01:21 PM

And what if you put that url directly into the browser?

It sounds like you've misconfigured the server address with the online web app

#14 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 16 June 2018 - 01:23 PM

And what if you put that url directly into the browser?

It sounds like you've misconfigured the server address with the online web app

 

Resource not found Error 404

The requested resource could not be found but may be available again in the future.



#15 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 16 June 2018 - 01:26 PM

When directly accessing my server from a web browser I use https://mydomain.org/emby.

Using the app for iOS or android I use  https://mydomain.org/ 443 (no emby endpoint, the app auto adds the /emby)


Edited by qkjsdvflmksvclkx, 16 June 2018 - 01:27 PM.


#16 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 136138 posts
  • Local time: 04:58 AM

Posted 16 June 2018 - 01:32 PM

well the screenshot is gone now so i can't go back and review it again.



#17 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 16 June 2018 - 01:34 PM

5b254c3cdf2e1_Capture.png

 

Sorry :)


Edited by qkjsdvflmksvclkx, 16 June 2018 - 01:43 PM.


#18 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 16 June 2018 - 01:50 PM

@Luke found the solution

 

for app.emby.media and iOs app I need to set the host to: https://mydomain.org.emby and leave the port blank then it works.

 

On android I use https://mydomain.org 443



#19 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 136138 posts
  • Local time: 04:58 AM

Posted 16 June 2018 - 01:53 PM

.emby ?



#20 qkjsdvflmksvclkx OFFLINE  

qkjsdvflmksvclkx

    Member

  • Members
  • 12 posts
  • Local time: 10:58 AM

Posted 16 June 2018 - 01:58 PM

.emby ?

Sorry https://mydomain.org/emby

 

Got a bit to excited and typed to fast :)

 

I tried  https://mydomain.org/emby and no port on android and that works too 

 

So android works with:

iOS/emby.media works with:

 

Any Idea why iOS app is no longer able to handle "Host https://mydomain.org port 443"? Because that definitely worked in version 1.49 (and I think 1.50 too but not to sure on that one ).

 

I think the Android app automatically appends /emby to the url. However iOS app is no longer doing that. I have to check if there is a way to monitor the http calls the android app makes .

 

Edit: i'm currently using BURP suite to setup a proxy and monitor the calls. For android I can see /emby is append. The iOS device is giving me a hard time to work with proxy... Still investigating.

apps.emby.media doesn't append the /emby


Edited by qkjsdvflmksvclkx, 16 June 2018 - 02:33 PM.






Also tagged with one or more of these keywords: IOS, Iphone

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users