Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when connecting to server - "Internet connection appears to be offline" #1426

Closed
klinginE opened this issue Feb 8, 2025 · 6 comments
Closed
Labels
bug Something isn't working

Comments

@klinginE
Copy link

klinginE commented Feb 8, 2025

Describe the bug

Attempt 1:

  1. My phone is connected to my home WiFi (no issues)
  2. Install Swiftfin via App Store
  3. Open Swiftfin
  4. Attempt to connect to local server, a Synology NAS running Jellyfin server in a docker container, on the same network (this works fine with the Jellyfin iOS mobile app)

Outcome: An error popup - "Error" "The Internet connection appears to be offline." "Dismiss"
Expected: To connect to the server

Attempt 2:

  1. My phone is connected to my home WiFi (no issues)
  2. Install Swiftfin via App Store
  3. Open Swiftfin
  4. Connect to the Synology NAS' VPN
  5. Attempt to connect to local Jellyfin server

Outcome: Works but only if I'm on the VPN
Expected: Shouldn't require a VPN when on the same local network

Notes:

  • The JellyFin iOS mobile app (non-native) works on the same local network without the need for the VPN.
  • DSM version -- DSM 7.2.2-72806 Update 3
  • Container Manager version -- 20.10.23-1437

Jellyfin docker image screenshot:
Image

Screenshot of error:
Image

Swiftfin Logs:

Not Connected To Internet

GET
http://MYHOSTNAME:MYPORNUM/System/Info/Public

URLSessionDataTask
–––––––––––––––––––––––––––––––––––––––
Host: MYHOSTNAME
Date: Feb 8, 2025 at 8:06:41 AM (MST)
Duration: 10.1 ms

Error
–––––––––––––––––––––––––––––––––––––––
Domain: NSURLErrorDomain
Code: -1009 (Not Connected To Internet)
Description: Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x30357d200 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0[802.11], ipv4, dns, uses wifi, _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <38435943-0158-45C5-BD9B-A2C4CA6D5462>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <38435943-0158-45C5-BD9B-A2C4CA6D5462>.<1>"
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=http://MYHOSTNAME:MYPORTNUM/> System/Info/Public, NSErrorFailingURLKey=http://MYHOSTNAME:MYPORTNUM/System/Info/Public, _kCFStreamErrorDomainKey=1}

Request Headers (4)
–––––––––––––––––––––––––––––––––––––––
Accept: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Authorization: MediaBrowser Client=Swiftfin iOS, Token=, Device=iPhone, Version=1.2, DeviceId=iOS_AD9E4576-8BEC-4955-892A-89006E8FE3FD

Request Body
–––––––––––––––––––––––––––––––––––––––

Response Body
–––––––––––––––––––––––––––––––––––––––

Application version

1.2 (4)

Where did you install the app from?

App Store

Device information

iPhone 14 Pro Max

OS version

iOS 18.3 (22D63)

Jellyfin server version

10.10.5

@klinginE klinginE added the bug Something isn't working label Feb 8, 2025
@JPKribs
Copy link
Member

JPKribs commented Feb 9, 2025

Just as a note, it looks like you've included your server's domain name in the logs. I would advise redacting that information just for security/privacy's sake.

That's very strange error! I don't know if that will be related to Swiftfin specifically but that's interesting that this doesn't seem to impact Jellyfin-Expo or web. The error in question is coming from the call to:

http://YOURSERVERNAME:8096/System/Info/Public Would you be able to confirm that is producing a result that is available?

Image

Would you also be able to attempt connecting to the server using the IP address : port and see if that works?

@klinginE
Copy link
Author

klinginE commented Feb 9, 2025

re: Just as a note, it looks like you've included your server's domain name in the logs

Thanks! I have obfuscated my host name with "MYHOSTNAME" and my port number with "MYPORTNUM"

Here is what I get when I navigate to http://MYHOSTNAME:MYPORTNUM/System/Info/Public

{
  "LocalAddress" : "http://127.0.0.1:8096",
  "ServerName" : "Kling-Synology",
  "Version" : "10.10.5",
  "ProductName" : "Jellyfin Server",
  "OperatingSystem" : "",
  "Id" : "ba6aab2250aa487d8592015c1fbe0923",
  "StartupWizardCompleted" : true
}

re: Would you also be able to attempt connecting to the server using the IP address : port and see if that works?

I tried that and I got the same results. I looked at the logs and it was the same exact error as before.

That's all the time I have today, but when I have time I was planning on also trying a few additional things, such as disabling the NAS' firewall, just long enough to test. I have a few other ideas too. I'll let you know how it goes in the coming days, once I have time to do it.

Thank you for looking into this!

@klinginE
Copy link
Author

Update:

tldr; after the latest iOS update it magically started to work!

I tried a whole assortment of different things, and nothing worked. I was planning on getting on a support call with Synology to see what they had to say. Before I could do so my iPhone updated (from 18.3.0 to 18.3.1). Somehow the update fixed it. I have no idea why that is, but glad it is working!

@JPKribs
Copy link
Member

JPKribs commented Feb 19, 2025

Update:

tldr; after the latest iOS update it magically started to work!

I tried a whole assortment of different things, and nothing worked. I was planning on getting on a support call with Synology to see what they had to say. Before I could do so my iPhone updated (from 18.3.0 to 18.3.1). Somehow the update fixed it. I have no idea why that is, but glad it is working!

That's great to hear! Just confirming, all of your devices are now back to working again on 18.3.1?

From Apple's patch notes, I don't see why that would make a difference but I think we can take a win wherever we can get it haha.

@klinginE
Copy link
Author

I only have one iPhone so, yup they all are working ;-). Jellyfin on my Mac wasn't having any issues to begin with.

@JPKribs
Copy link
Member

JPKribs commented Feb 19, 2025

Perfect! Glad to hear it's working for you again. Thank you for confirming through what resolved this. This may help out someone in the future if this issue comes up again!

@JPKribs JPKribs closed this as completed Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants