jzombie / docker-mqtt-mosquitto-cloudflare-tunnel

MQTT Broker via Cloudflare Tunnels, using Docker.
10 stars 0 forks source link

Working via 4G LTE? #23

Closed obitvn closed 1 month ago

obitvn commented 1 month ago

Hello Sir, I am a Cloudflare user for many of my small websites. Previously, I have tried various ways to get the MQTT broker working through Cloudflare Tunnel without any success. From what I understand, Cloudflare does not support the MQTT or WebSocket protocols, so it cannot work. I searched on GitHub and came across your project, which surprised me. I have tried deploying it exactly as you instructed, but I cannot connect to the MQTT via the domain. Have you actually tested and experimented with it?

jzombie commented 1 month ago

Yes, it works for me; that's why I built this repo to solve a use case that I had.

I haven't tested it with 4G LTE, but I use it from Nicaragua, which is connected to a server in the U.S.

If you want to see if it connects for you, try out my demo project, which uses it.

Go to https://etfmatcher.com/ -> Type in growth1 as the password -> Navigate to Settings and enter a room name.

Navigating different stocks across the site will log history to the mqtt.zenosmosis.com endpoint via WebSocket.

jzombie commented 1 month ago

@obitvn, this forum post provides additional context: https://community.cloudflare.com/t/mqtt-trough-cloudflare-tunnel/503599