Unable to connect to Jellyfin via Wireguard

Issue description:

My Jellyfin server is located in my home network, accessible via Wireguard.

When trying to connect to my Jellyfin instance, the app throws “Unable to connect” error.

The Jellyfin instance is up and running and accessible via web browser, Jellyfin app and Finamp using the same configuration. Only Symfonium is not able to access the Jellyfin server.

As a second note, I am not able to use local DNS for the Jellyfin url. I do have “https://media.home.arpa” assigned to my Jellyfin instance (and DNS works for other apps) but Symfonium is not able to recognize the host.

Logs:

Please note that the logs contain 2 tries for the connection - first with the hostname and then with the IP address.

As a weird detail, seems like the connection is started from an address 10.51.113.251 even though the Wireguard addresses are allocated to 192.168.20.0/24 and the phone is located currently in the address of 192.168.20.2

debug-20231002_141747.zip (1.4 KB)

Well you probably miss configured something. The DNS and network connections are made by the OS.

2023-10-02 14:17:15.824 T:TestURL
← [467] HTTP FAILED: java.net.UnknownHostException: Unable to resolve host “media.home.arpa”: No address associated with hostname

Your OS current network configuration is unable to resolve that name.

2023-10-02 14:17:39.087 T:jellyfin.add.client.info
IOException
java.net.SocketTimeoutException: failed to connect to /192.168.200.22 (port 8096) from /10.51.113.251 (port 40360) after 5000ms
at libcore.io.IoBridge.connectErrno(IoBridge.java:190)
at libcore.io.IoBridge.connect(IoBridge.java:134)
at java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:142)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:390)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:436)
at java.net.Socket.connect(Socket.java:621)
at xq.l.e(Unknown Source:5)
at tq.j.e(Unknown Source:63)
at tq.j.c(Unknown Source:157)
at tq.d.a(Unknown Source:697)
at tq.a.a(Unknown Source:57)
at uq.f.b(Unknown Source:123)
at rq.a.a(Unknown Source:149)
at uq.f.b(Unknown Source:123)
at uq.a.a(Unknown Source:146)
at uq.f.b(Unknown Source:123)
at uq.g.a(Unknown Source:146)
at uq.f.b(Unknown Source:123)
at ek.c.a(Unknown Source:423)
at uq.f.b(Unknown Source:123)
at x9.b.a(Unknown Source:2)
at uq.f.b(Unknown Source:123)
at tq.h.h(Unknown Source:96)
at tq.h.f(Unknown Source:43)
at wm.e1.r1(Unknown Source:568)
at wa.a.v(Unknown Source:101)
at wo.a.q(Unknown Source:8)
at tp.h0.run(Unknown Source:112)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)

Your OS current configuration does not allow Symfonium to reach that IP, the source IP is from the OS.

Does this work if you are using the stock jellyfin app? If not this is an issue with your network setup.