New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local network setting for use without relying on NAT hairpinning or local DNS #755
Comments
If you cannot access your server from within your network it is a misconfiguration of your network. |
No, it's not: NAT hairpinning is not available on most consumer routers, so the only way to make this possible is by including a setting in the app, just like Transdroid does. |
Hmm, seems indeed to be much more complicated/not working on many consumer routers. |
Thanks for reopening this, I think it would be very useful for many people who host at home like I do :) |
Am I understanding this correctly then I want this feature too. When you're at home the Android app should detect that (maybe by Wifi name setting or whatnot) so everything goes through LAN only. This would allow for potentially faster uploads and less data use since some ISPs track data use. |
@tobiasKaminsky Could you advise what the best solution would be for this problem? I had a look at I see two options:
Is there a better/easier option? |
@newhinton and @AndyScherzinger Do you any advice on this topic? Thanks! |
@LukeOwlclaw unfortunately I am no expert on this part (usually doing the UI work), maybe @tobiasKaminsky can answer the question. Not sure how this could be achieved at all since we now rely on the weblogin, so we would have to save 2 sessions and would also have to decide when to use which session. |
I tend to say that this is a pure network configuration issue, as @tobiasKaminsky mentioned. If someone wants to access his Nextcloud server over the Internet and the LAN, he has to make sure that the local DNS is working correctly. |
You are partly correct @j-ed. An alternative would be to provide a custom DNS selector implementation that would route all requests on a given Wifi network to a proper IP address for a given hostname which might make sense for people not running their own DNS server :) |
@mario You are talking about custom DNS resolution as mentioned here, right? I was also thinking that this should work without introducing certificate problems. |
Actual behaviour
Can't connect to Nextcloud instance if it's on local network.
Expected behaviour
It'd be nice (and convenient) to be able to choose a local network, just like you can do with Transdroid (Settings > Servers > [Your server] > Advanced settings > Local Network and Local IP or host). My server runs inside my home network and it is very annoying to have to either change the settings when I get home or to have to access my Nextcloud instance using mobile data. I hope this makes sense.
Steps to reproduce
Environment data
Android version: irrelevant
Device model: irrelevant
Stock or customized system: irrelevant
Nextcloud app version: 1.4.1
Nextcloud server version: 11.??
The text was updated successfully, but these errors were encountered: