Any way to get access remotely to OH2 without using myopenhab.org?

Is MQTT would be not an option?

You can get account on any free cloud MQTT Broker (like cloudMQTT for example). Then you use OpenHAB MQTT Binding to make Openhab connect to this broker and exchange topics. You can use SSL/TLS security. And finally some MQTT client on your Android/iOS device will connect to the same broker. This is not a Web-based solution though, but extremely fast and you don’t need to open any ports on your system

can use webhooks to connect to IFTTT

Continuing the discussion from Any way to get access remotely to OH2 without using myopenhab.org?:

There are many methods to do this - the difference is security, easiness of the configuration and cost of the solution.

Following I am typing some methods with some analyses

1. Port Forwarding (with Dynamic DNS and SSL encryption)

This requires router configuration (to forward your routers public port to OH2 private port), however this requires you to have fixed ip address. In case your ip address is not fixed (in most cases) you need to use Dynamic DNS services to be able to use domains instead ip address (there are available free services i.e. https://www.noip.com/free ). Here we still have security question open. To solve security question i.e. setup ssl certificate we can use Let’s Encrypt service ( https://letsencrypt.org/ ) to get free certificate, however we should configure OH2 server to use the certificate or we should setup reverse proxy (in most cases nginx or apache) and configure proxy to use certificate.

Conclusion – Hard to setup if we want to have secure connection (can be done for free)

2. VPN

For this scenario we should use VPN services. We should connect our OH2 server to VPN then in other side we should connect our client to VPN (i.e. mobile device) that will allow us to access to OH2 by local IP address. We can set up our own VPN server (i.e. https://openvpn.net/ ) however this requires knowledge to do it right.

Conclusion – Easy, Paid, Secure, Bad User Experience (connecting to VPN every time you need to connect to OH2)

3. Tunneling

For this scenario we can use free tunneling services (i.e. https://tunnelin.com/ ). The process is very straight forward i.e. Register a User, Connect your device to service (by running one line command on device), use Web interface to open/close secure tunnels to the device.

Conclusion – Free, Secure, Easy

3 Likes

Hello,

I recently set up an IPSec VPN to access OH from my Android, mainly due to recurring issues with myopenhab.

The VPN tunnel works fine and is fast. But the Android App always tries to connect to myopenhab.og when I’m not connected to a Wifi. Is there a way to force the app to use the “internal” IP even with 4G?

Greetings…