ShelfPlayer icon indicating copy to clipboard operation
ShelfPlayer copied to clipboard

Audiobookshelf server not found

Open weswitt opened this issue 1 year ago • 10 comments

I just bought the iOS app and installed it only to find that it will not connect to my server. I was previously using the beta version that worked perfectly. I'm getting the error: "Audiobookshelf server not found". And yes I'm using the right URL. I can access the server from the browser on the same iPhone.

What do I need to do to get this working??

weswitt avatar Jul 03 '24 15:07 weswitt

What kind of environment are you running both apps in? Can you describe your network setup in detail?

rasmuslos avatar Jul 08 '24 07:07 rasmuslos

As a data point Plappa works perfectly and the previous beta versions of ShelfPlayer worked, so this is obviously a bug in the released version of ShelfPlayer. Also I can access the AB server from a browser on the same iPhone.

The AB server runs in a KVM VM, the iOS app obviously runs on an iPhone. Network is very simple. I use an NGINX reverse proxy to access AB over SSL. All SSL certs are installed into NGINX, so NGINX proxies https to http. Very straightforward and common.

weswitt avatar Jul 08 '24 13:07 weswitt

Is the traffic routed through the internet or your local network?

rasmuslos avatar Jul 08 '24 14:07 rasmuslos

Internet as I want to access AB from everywhere. All HTTPS traffic is routed through the internet as I have port 443 forwarded in my router.

weswitt avatar Jul 08 '24 14:07 weswitt

What beta version were you using before and what version of ABS are you running on?

rasmuslos avatar Jul 08 '24 14:07 rasmuslos

I have no idea

weswitt avatar Jul 08 '24 14:07 weswitt

Check if ABS and ShelfPlayer are up to date, your firewall and URL (protocol, port, ... [should be something like https://your.domain without a trailing /])

rasmuslos avatar Jul 09 '24 16:07 rasmuslos

@weswitt Are you using the latest version of ABS and ShelfPlayer and do you have any additional security measures, such as an WAF in place?

rasmuslos avatar Jul 25 '24 07:07 rasmuslos

I too was running into a similar-ish issue where ShelfPlayer just threw a "Login failed" and refused to even connect even though my instance's URL was correct.

I use OIDC on ABS and I found out the solution was to change the Allowed Mobile Redirect URIs field on my ABS instance from the default value, which was audiobookshelf://oauth, to *. Works now.

Not sure if @weswitt is facing the same problem.

font44 avatar Jul 25 '24 19:07 font44

I was having issues connecting initially as well and spent some time searching for documentation on the Mobile Redirect URI for OIDC until I looked at the debug logs and found shelfplayer://callback. Once that was added I was able to login. I prefer using explicit allowed URIs vs just using a wildcard, but if all you care about is getting it to work initially, either should suffice.

Crisco avatar Aug 03 '24 15:08 Crisco

Do I need OIDC for Shelfplayer to work? Because I also can't connect to my domain via Shelfplayer @rasmuslos

lvermehren avatar Nov 25 '24 11:11 lvermehren

No, make sure you don't include a trailing slash

rasmuslos avatar Nov 29 '24 14:11 rasmuslos

I know this issue is closed but adding this note for anyone who has the same problem as me. I host an ABS server on my local network and was getting the 'Audiobookshelf server not found' error. Turns out iOS has a special permission to allow apps to access the local network (search for 'local network' in settings and you will find it) - it was turned off for ShelfPlayer, as soon as I turned it on everything started working.

codebox avatar Feb 02 '25 19:02 codebox

@benjick This is the wrong repository. https://github.com/advplyr/audiobookshelf-app/issues is the correct one.

rasmuslos avatar Apr 27 '25 11:04 rasmuslos

@rasmuslos sorry 🤦‍♂️ I was googling and reading lots of issues and this felt like the closest one (except it being the wrong repo 😅)

benjick avatar Apr 27 '25 11:04 benjick