Shared links on mobile
I've got a public domain that I've exposed immich to via cloudflare tunnel. Shared links generated in the web app work great - I can send them externally and anyone can view or add to the album. So far so good.
The problem is that when I generate those links from the mobile app, it doesn't seem to respect the "external domain" setting I've enabled in the web interface. Instead it will (if I am home) use the internal 192.168.xx.xx:xxxx format, which is no use to me if I want to text someone an album. Is there no way to generate a proper external link from mobile?
Secondarily - is there a way to view the existing already-generated links from the mobile app?
12 Replies
:wave: Hey @Special Extended Edition,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Checklist
I have...
1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.Shared links on the mobile app are on the library tab->shared links.
As for the link url, you've set the server address under administration->settings->server settings?
what url are you logged in to the app as? I assume you are using local IP
Correct - I am logged in using local IP... to avoid having to route local traffic through cloudflare.
I've set the external IP in the app as well
I guess that's how it currently works. you could make a feature request if there isn't already one
OK it seems the links are correct (ie they use the external link) when accessed via the library tab. It seems to just be wrong when I initially create them from the album page.
More of a Band-Aid solution, but if you happen to use a DNS adblocker like adguard home/pi-hole, you could add a DNS rewrite so on your lan it jumps directly to your immich instance even when using your domain name.
So when creating the link, the address it gives you is whatever you entered when setting up the mobile app, in this case a local ip? But viewing that same link on the links page is the domain name set in the server settings?
Yes that’s correct.
I’m fine to use the library tab for now so NBD I guess.
This is probably a good idea regardless.
Thanks!
I checked and it looks like the url entered during setup is only used if the externalDomain setting isn't set in the immich config.
I wonder if this could be due to a deeper issue like the config not loading in correctly or something? Unfortunately I don't have much experience with flutter/mobile development, so I won't be super useful with trying to replicate the issue
So just to confirm, you've set your external domain in here on the adminstration page?:

Weirdly enough the issue has gone away for me.
I’m not sure what changed. I restarted the app and logged out/back in, also re-input the external domain setting.
Seems to be working as expected now
Lol weird, glad it sorted itself out though!