Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Legal Notice
  • Privacy Policy
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. Solved: Virtual Printer port 8883 conflicts with the Mosquitto add-on (Bambuddy in a container on the same machine like HomeAssistant)

Solved: Virtual Printer port 8883 conflicts with the Mosquitto add-on (Bambuddy in a container on the same machine like HomeAssistant)

Scheduled Pinned Locked Moved General Discussion
1 Posts 1 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Vilda007V Offline
    Vilda007V Offline
    Vilda007
    wrote last edited by
    #1

    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.

    Why
    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.

    Fix
    (HA UI only — the SSH add-on's SUPERVISOR_TOKEN is read-only on the supervisor API, so this can't be scripted)

    1. Settings → Add-ons → Mosquitto → Network.
    2. Remap the TLS listener host port 8883 → 8885 (leave 1883/1884/8884 as-is).
    3. Restart the Mosquitto add-on, then the BamBuddy add-on.

    Verify

    • BamBuddy log: Simple MQTT server listening on port 8883.
    • openssl s_client -connect <HA-IP>:8883 returns a cert with CN=<your-VP-serial> issued by Virtual Printer CA, Verify return code: 0 (ok).

    Gotcha
    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.

    1 Reply Last reply

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    Powered by NodeBB Contributors
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Legal Notice
    • Privacy Policy