# Cannot connect to MQTT over the port 8883

**URL:** <https://www.thethingsnetwork.org/forum/t/cannot-connect-to-mqtt-over-the-port-8883/52700>\
**Category:** The Things Stack v3\
**Tags:** mqtt, mosquitto\
**Created:** [October 27, 2021, 6:59am UTC](https://www.thethingsnetwork.org/forum/t/cannot-connect-to-mqtt-over-the-port-8883/52700 "2021-10-27T06:59:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [October 27, 2021, 12:07pm UTC](https://www.thethingsnetwork.org/forum/t/cannot-connect-to-mqtt-over-the-port-8883/52700/2 "2021-10-27T12:07:33Z")

</div>

You may need to explicitly set the capath and protocol version parameters.

Assuming that you are using Mosquitto with MQTT bridging:

In `mosquitto.conf` to the bridge settings add:

```nohighlight
bridge_capath /etc/ssl/certs
bridge_protocol_version mqttv311

```

_(Above `capath` works for Home Assistant (OS) but may require a different value for your OS/distribution.)_

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/cannot-connect-to-mqtt-over-the-port-8883/52700)._
