I
Immich•3y ago
sergiopt

Immich access by Internet in Local Network

Hi, I'm new in Immich, but i have done the setup successfully after several tries, because my router was somehow stupid with ports, and i could only get it right when the electricity went out and then on again, by accident, and suddenly all as started working. So i figure that the router should be with some kind of error, and it only needed a restart. 🙂 So, that being said, i have a question , and i appreciate if anyone could help me figure how to solve it. I can connect through App and Web to Immich in my local network by using server endpoint as my localhost:2283 (/api for App), and i can access it also through my domain "home.domain.pt". I have set a Dynamic DNS in my domain with that name, and i have setup Nginx with a host source "home.domain.pt" to destination "localhost -> port 2283". The question is: How can i set some kind of DNS redirection (i think it's what i need), so i can always use Server endpoint "home.domain.pt" despite of being using Internet or Home Network? Because, right now, if I am connected to my home network, i can only use the "localhost" address. If i try with "home.domain.pt" in my home network it doesn't connect. Thanks in advance for any help.
13 Replies
bo0tzz
bo0tzz•3y ago
You have two options: either enable "hairpoint NAT" if your router supports that, or run a local dns server so that when you're inside your home network, the domain resolves to the local ip
sergiopt
sergioptOP•3y ago
Hi, Thanks for you reply. Hairpinning is not an option unfortunately. How about the Local Dns? Can you tell me how to do it?
bo0tzz
bo0tzz•3y ago
The easiest is probably to set up pihole That gets you some ad blocking as well which is nice
sergiopt
sergioptOP•3y ago
I was looking at pihole as you said. Do you know how to use it?
bo0tzz
bo0tzz•3y ago
I haven't used it in a long time, but their docs are pretty good and there are a lot of guides too
Chipwingg
Chipwingg•3y ago
I accomplish what you're trying to accomplish by owning a domain through cloudflare, and then using the SWAG reverse proxy to proxy my domain to immich and my other services. I can use tthe domain regardless of which network I am on.
bo0tzz
bo0tzz•3y ago
That's with your traffic being proxied through cloudflare, right?
Chipwingg
Chipwingg•3y ago
I can do that, and I do, but it's not necessary I do not use cloudflare tunnels for this, if that's what you're asking
bo0tzz
bo0tzz•3y ago
No, I mean the orange cloud in the cloudflare dns settings
Chipwingg
Chipwingg•3y ago
Yes, I use that ip proxy. I used to use it without that though But when I wanted to share stuff from my domain with strangers, I didn't want them to be able to see my address
sergiopt
sergioptOP•3y ago
Hi. The thing is that i already have a domain, not in cloudflare, but it's a paid one. And i don't want to pay an extra domain just for this purpose.
Chipwingg
Chipwingg•3y ago
You can manage most domains with cloudflare even if you didn't buy it from them
sergiopt
sergioptOP•3y ago
i am trying to use cloudflare... i don't know where to start would anyone guide me thru? well.. i can't figure how to setup cloudfare so i have installed PowerDNS

Did you find this page helpful?