mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #618] [Bug]: Unable to connect to Virtual printer #397
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#397
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dlawler489 on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/618
Originally assigned to: @maziggy on GitHub.
Bug Description
Hi, great work!
I'm having an issue getting either Bambu Studio v 2.5.0.66 on Mac (tried it on Windows as well, but can't remember the version - it was downloaded and installed today.
I also repeated the test in Orca Slicer with the same error.
Connect (Serial Number here) failed![Serial number], code=-1
I have copied the cert content into my printers file, and checked with mosquitto from my Mac to ensure the MQTT connection to the virtual printer was working (it did). I can control the physical printer fine (tried it with both A1 and P2S.
I am using the 1 IP for both the server itself, and the virtual printer, I only have 1 printer connected it to (I tried on different networks, at work and at home.
Expected Behavior
The slicer to be able to connect to the virtual printer
Steps to Reproduce
as per bug discription
Printer Model
A1
Bambuddy Version
v0.2.2b1
Printer Firmware Version
1.07.02
Installation Method
Other
Operating System
Linux (Ubuntu/Debian)
Relevant Logs / Support Package
Screenshots
No response
Additional Context
No response
Checklist
@maziggy commented on GitHub (Mar 5, 2026):
Need a suppprt package -> https://wiki.bambuddy.cool/features/system-info/?h=debug#enable-debug-logging
@dlawler489 commented on GitHub (Mar 5, 2026):
bambuddy-support-20260305-175940.zip
Sorry, attached it now.
@maziggy commented on GitHub (Mar 5, 2026):
Please use latest beta branch 0.2.2b2 and try again.
@begna112 commented on GitHub (Mar 5, 2026):
I ran into the same
code=-1issue connecting OrcaSlicer to the virtual printer proxying an X1C (firmware 01.11.02.00). Built 0.2.2b2 from source and the issue persisted.Root cause: The Bind-TLS proxy (port 3002) was failing with
SSL error connecting to <printer>:3002: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE]. The printer only supports plain RSA key exchange cipher suites (e.g.AES256-GCM-SHA384), but Python's OpenSSL 3.5 defaults exclude those in favor of forward-secrecy ciphers (ECDHE/DHE only). So the TLS handshake fails because client and server have no ciphers in common.Confirmed by testing with
openssl s_clientfrom the same host — it connects fine because it offers a wider cipher set including plain RSA. Python'sssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)does not.Fix: In
backend/app/services/virtual_printer/tcp_proxy.py, add the RSA ciphers back to the client SSL context:After rebuilding with this change, the Bind-TLS proxy connects successfully and OrcaSlicer can reach the virtual printer. Tested on X1C — not sure if the same cipher limitation applies to all Bambu printer models (A1, P1S, etc.) or even all production X1Cs, but it seems likely given the shared firmware TLS stack.
@maziggy commented on GitHub (Mar 5, 2026):
@begna112 please let's continue in https://github.com/maziggy/bambuddy/issues/620
@chris-krammer commented on GitHub (Mar 8, 2026):
Hi, just a note when building OrcaSlicer locally.
You need to add the Cert from BamBuddy BEFORE you build the OrcaSlicer-AppImage.
/path/to/extracted/OrcaSlicer-x.y.z/resources/cert/printer.cert./build_linux.sh -dstiTested just yesterday with all the latest downloads