Mozilla Webthings Gateway Docker: Secure Connection Failed

Hello I am attempting to run my Mozilla IoT gateway from docker container on windows 10. I am able to run the project on docker and connect to my gateway web UI locally using the my local IP address and the designated port, but when I try to go to the remote access domain (****.mozilla-iot.org) I get a secure connection failed. I understand that this is likely an issue with the secure tunneling, but I am wondering if anyone has any suggestions for working around this issue. Remote access to my gateway is a important feature to me!

Thanks in advance!

Is it possible that your Windows machine or something else on your network is blocking the outbound connection to api.mozilla-iot.org? That is required for the tunneling to work.

@ mrstegman … This is entirely possible and I think it is likely what the issue is. What I do not know how to do is to fix this issue. Do you have any advice for how I could confirm that this is the issue that I am having or how to fix it?

Thanks! - Mitch

Try this from inside your Docker container, if possible.

This should print out 400.

$ curl -s -o /dev/null -w '%{http_code}\n' https://api.mozilla-iot.org:8443/ping

This should print out 200.

$ curl -s -o /dev/null -w '%{http_code}\n' https://w3c-interop.mozilla-iot.org

Both of those returned correctly:

Little update … After I sent those commands I checked and was able to access the remote gateway web UI.

Unfortunately I am now experiencing intermittent outages with the web UI. Occasionally the UI will go gray and say that gateway is unreachable, but I am able to reach the local web UI using IP address. Is a static IP necessary to host a gateway?

No, you don’t need a static IP. Is your internet connection unreliable? It has to be able to maintain a constant tunnel to our AWS server.

I am now able to maintain a consistent tunnel to the Mozilla AWS servers. I created a Linux RedHat 7 VM and ran the gateway on that machine. Thank you for your help on this.