# Exposing ports of EMQX container via public balena device URL

**URL:** <https://forums.balena.io/t/exposing-ports-of-emqx-container-via-public-balena-device-url/365459>\
**Category:** Product support\
**Tags:** support, docker\
**Created:** [November 16, 2022, 8:18pm UTC](https://forums.balena.io/t/exposing-ports-of-emqx-container-via-public-balena-device-url/365459 "2022-11-16T20:18:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jebraat](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@jebraat](https://forums.balena.io/u/jebraat)\
**Post date:** [November 16, 2022, 8:18pm UTC](https://forums.balena.io/t/exposing-ports-of-emqx-container-via-public-balena-device-url/365459/1 "2022-11-16T20:18:45Z")

</div>

Hi,

Here is my problem:

I can’t connect to EMQX MQTT broker through balena device url via ws/wss/mqtt protocols on a specific port.  
E.g. wss://\<device\_id\>.balena-devices.com:8084

I’m trying to connect a web application via wss or mqtt to a container on the device. Currently only port 80 works and as I understand only via http/s. Is there any way to enable a ws, wss or mqtt connection through the device URL? It doesn’t say anything about other [ports in the docs](https://www.balena.io/docs/learn/develop/runtime/#public-device-urls).

I have a multicontainer setup with the ports to be accessed exposed to the host.

Best,  
John

---

<div class="post-metadata">

**Author:** ![jebraat](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@jebraat](https://forums.balena.io/u/jebraat)\
**Post date:** [November 16, 2022, 8:38pm UTC](https://forums.balena.io/t/exposing-ports-of-emqx-container-via-public-balena-device-url/365459/2 "2022-11-16T20:38:04Z")

</div>

Answering my own question here…

Only http traffic is supported, so what I want to do won’t work. [More info here](https://www.balena.io/docs/learn/manage/actions/#public-device-url)
