{"action":"created","issue":{"url":"https://api.github.com/repos/openhab/openhab-android/issues/1111","repository_url":"https://api.github.com/repos/openhab/openhab-android","labels_url":"https://api.github.com/repos/openhab/openhab-android/issues/1111/labels{/name}","comments_url":"https://api.github.com/repos/openhab/openhab-android/issues/1111/comments","events_url":"https://api.github.com/repos/openhab/openhab-android/issues/1111/events","html_url":"https://github.com/openhab/openhab-android/issues/1111","id":385082111,"node_id":"MDU6SXNzdWUzODUwODIxMTE=","number":1111,"title":"VPN connections cause this app to use the remote server instead of the locally available server","user":{"login":"nahaff","id":10065206,"node_id":"MDQ6VXNlcjEwMDY1MjA2","avatar_url":"https://avatars0.githubusercontent.com/u/10065206?v=4","gravatar_id":"","url":"https://api.github.com/users/nahaff","html_url":"https://github.com/nahaff","followers_url":"https://api.github.com/users/nahaff/followers","following_url":"https://api.github.com/users/nahaff/following{/other_user}","gists_url":"https://api.github.com/users/nahaff/gists{/gist_id}","starred_url":"https://api.github.com/users/nahaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahaff/subscriptions","organizations_url":"https://api.github.com/users/nahaff/orgs","repos_url":"https://api.github.com/users/nahaff/repos","events_url":"https://api.github.com/users/nahaff/events{/privacy}","received_events_url":"https://api.github.com/users/nahaff/received_events","type":"User","site_admin":false},"labels":[{"id":91955060,"node_id":"MDU6TGFiZWw5MTk1NTA2MA==","url":"https://api.github.com/repos/openhab/openhab-android/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-11-28T03:11:44Z","updated_at":"2018-11-28T20:48:42Z","closed_at":"2018-11-28T18:22:26Z","author_association":"NONE","body":"<!-- Please search the issue, if there is one with your issue -->\r\n\r\n### Actual behaviour\r\nWhen I'm at home, I can connect to VPNs and still get to local servers because only internet traffic goes through the VPN. While on the VPN, I can still reach openHAB through the local IP address in a web browser. However, the openHAB Android app still says \"Connecting to remote URL\" every time I launch it, and it takes a bit longer. Just to be clear, I'm not trying to connect to my openHAB instance through the VPN. The app is probably just looking at my local IP address information on the VPN interface instead of looking at all interfaces or some other method of testing the local route.\r\n\r\nNormally, I rarely use VPN while at home (just for work sometimes), but Google Fi offers always on VPN now. So, it's started to bug me now that it's always on, I'm always \"remote\".\r\n\r\n### Expected behaviour\r\nOpen up the app, and it quickly connects to the local URL. Expected even while connected to some VPN, as long is the local instance is really locally available.\r\n\r\n \r\n### Steps to reproduce\r\n1. Connect to VPN. I've used this with OpenVPN and Google's VPN, but I believe results will be similar on any VPN (maybe not a VPN that runs on the local subnet that you're already on, but that's usually only done so VPN can stay always-on and local).\r\n2. Make sure your instance is still locally available. Open OpenHAB in a web browser using the local URL. Most VPNs still allow local LAN traffic.\r\n3. Launch the OpenHAB application and see that it connects to the remote URL instead of the local URL,\r\n\r\nI'm not going to fill the rest of this form out, but let me know if you need any more information. I believe it's probably a pretty simple problem, but I'm not sure if the fix is simple. Thanks!"},"comment":{"url":"https://api.github.com/repos/openhab/openhab-android/issues/comments/442599248","html_url":"https://github.com/openhab/openhab-android/issues/1111#issuecomment-442599248","issue_url":"https://api.github.com/repos/openhab/openhab-android/issues/1111","id":442599248,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjU5OTI0OA==","user":{"login":"nahaff","id":10065206,"node_id":"MDQ6VXNlcjEwMDY1MjA2","avatar_url":"https://avatars0.githubusercontent.com/u/10065206?v=4","gravatar_id":"","url":"https://api.github.com/users/nahaff","html_url":"https://github.com/nahaff","followers_url":"https://api.github.com/users/nahaff/followers","following_url":"https://api.github.com/users/nahaff/following{/other_user}","gists_url":"https://api.github.com/users/nahaff/gists{/gist_id}","starred_url":"https://api.github.com/users/nahaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nahaff/subscriptions","organizations_url":"https://api.github.com/users/nahaff/orgs","repos_url":"https://api.github.com/users/nahaff/repos","events_url":"https://api.github.com/users/nahaff/events{/privacy}","received_events_url":"https://api.github.com/users/nahaff/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T20:48:42Z","updated_at":"2018-11-28T20:48:42Z","author_association":"NONE","body":"Sounds like we may have different bugs. I'm not saying yours isn't a bug, just that I can't recreate it. Mine seems to work with the DNS name if I just turn off the VPN. Your comments helped me figure it out anyway. The issue I'm having is just from my phone using the VPN's DNS instead of the local one. I can reopen it for you, and would have, but that VPN cause part is right in the title of this bug report, so I don't think it would fit."}}
{"actor":{"display_login":"nahaff"}}