Replies: 4 comments 4 replies
-
Could you give me an example of such an app? @perfectra1n , what's the solution here? I would say that this has to be handled more on the DNS side, by overriding the IP to the domain with the local one. Edit: Converting to discussions until we have a consensus on whether we should have this as part of the application. |
Beta Was this translation helpful? Give feedback.
-
If you’re on the same network as your internet-exposed Trilium instance, NAT hairpin will minimize the hops needed to reach it (and make it available in the first place). I’m not sure if this “distant travel” of the network request holds any water though, as most network requests, even on coax, are completed in < 100ms. Even if we do support something like the scenario asked above, Trilium will still respond at the same speed minus the time it takes for the router to decide it’s a NAT hairpin route (which we’re talking fractions of a nano second). Even network requests to the opposite side of the world from wherever one is located is typically < 300ms, and having it swap to a local IP versus using the internet-exposed URL would only save the time it takes for the NAT hairpin on the router. The only app I know of that does something like this is Immich. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
For now we'll not implement this as a DNS configuration would solve the issue in a much better way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe feature
Hi,
in many self-hosted apps, there is the option to specify a local ip address to use preferably when at home, versus the default distant (internet) one when away.
It would be nice to have a similar option in Trilium Next, to avoid unnecessary distant data travels when the server is right next door.
Additional Information
PS: It could also be the other way around, since I never know whether the data is sent locally once the DNS is resolved to the public IP matching the IAP's router that manages the DHCP...
PPS: sorry if I don't really know what I'm talking about, that's on my todo to check on which server the data really is transitting.
Beta Was this translation helpful? Give feedback.
All reactions