Skip to content
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 URL and Wi-Fi #708

Open
arins opened this issue Jan 6, 2023 · 3 comments
Open

Local URL and Wi-Fi #708

arins opened this issue Jan 6, 2023 · 3 comments

Comments

@arins
Copy link

arins commented Jan 6, 2023

If you are on a Wi-Fi connection at home the app uses the local URL to connect to openHAB which is great.

If you are connected to Wi-Fi network but not your home Wi-Fi where openHAB installation is located the app will try to use your local URL as well. But of course that will cause an error because the app can not reach your openHAB instance because it is not on that LAN.

Would it be possible for the app to only use the local URL on specific Wi-Fi SSID?

You could have a checkbox use local URL for all Wi-Fi SSID if a users wants that to keep old functionality.

@dirkbe
Copy link
Contributor

dirkbe commented Jan 26, 2023

When you use a different Wi-Fi than your home Wi-Fi but with a VPN connection we still want to use the local URL. The detection of local vs. remote is not simple. I use same URL for local and remote and connect only via VPN from remote. We have another enhancement for multiple servers[/issues/557]

@arins
Copy link
Author

arins commented Jan 26, 2023

I totally agree that we should not "break" current setting or force the user to specify SSID. That is why my suggestion is that we can keep the old functionality as is but you have an option for local URL. My thought was that only use local URL when on a specific SSID. If SSID is not specified then use local URL for all Wi-Fi connections in that way you can still connect through VPN on any Wi-Fi. So this feature would only be optional and not break existing functionality.

@lsiepel
Copy link

lsiepel commented Jan 27, 2023

Or keep the current behaviour with an extra ‘rule’.
If connected by WiFi, but oh is unreachable by the local uri, try the remote. It might cause a small delay, but atleast it can work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants