<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Solved: Virtual Printer port 8883 conflicts with the Mosquitto add-on (Bambuddy in a container on the same machine like HomeAssistant)]]></title><description><![CDATA[<p dir="auto">If you run BamBuddy in a container on the same machine as Home Assistant add-on and the Mosquitto broker add-on on the same HAOS box, and Bambu Studio can't connect to your Virtual Printer (connection error, TLS handshake fails) while the BamBuddy log shows MQTT port 8883 is already in use — this is a port collision on the host, not a BamBuddy bug.</p>
<p dir="auto"><strong>Why</strong><br />
Bambu Studio hardcodes MQTT/TLS on port 8883 for LAN printers, so BamBuddy's Virtual Printer MQTT server needs host port 8883 (and the HA add-on runs with network_mode: host). The Mosquitto add-on also maps host 8883→8883 by default (its TLS listener). Mosquitto wins the bind, so Bambu Studio connects to Mosquitto's cert instead of the Virtual Printer CA cert → TLS verification fails.</p>
<p dir="auto"><strong>Fix</strong><br />
<em>(HA UI only — the SSH add-on's SUPERVISOR_TOKEN is read-only on the supervisor API, so this can't be scripted)</em></p>
<ol>
<li>Settings → Add-ons → Mosquitto → Network.</li>
<li>Remap the TLS listener host port 8883 → 8885 (leave 1883/1884/8884 as-is).</li>
<li>Restart the Mosquitto add-on, then the BamBuddy add-on.</li>
</ol>
<p dir="auto"><strong>Verify</strong></p>
<ul>
<li>BamBuddy log: Simple MQTT server listening on port 8883.</li>
<li>openssl s_client -connect &lt;HA-IP&gt;:8883 returns a cert with CN=&lt;your-VP-serial&gt; issued by Virtual Printer CA, Verify return code: 0 (ok).</li>
</ul>
<p dir="auto"><strong>Gotcha</strong><br />
a Mosquitto add-on update can reset its network config to defaults and reclaim 8883, breaking the Virtual Printer again. If it recurs, just re-apply the 8883→8885 remap.</p>
]]></description><link>https://forum.bambuddy.cool/topic/92/solved-virtual-printer-port-8883-conflicts-with-the-mosquitto-add-on-bambuddy-in-a-container-on-the-same-machine-like-homeassistant</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Jul 2026 01:32:10 GMT</lastBuildDate><atom:link href="https://forum.bambuddy.cool/topic/92.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Jul 2026 21:55:28 GMT</pubDate><ttl>60</ttl></channel></rss>