[GH-ISSUE #445] [Bug]: Virtual Printer Proxy Mode Bambulab connects to port 3002 #274

Closed
opened 2026-05-06 12:27:49 +02:00 by BreizhHardware · 5 comments

Originally created by @kaiminator on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/445

Originally assigned to: @maziggy on GitHub.

Bug Description

I am running Bambuddy in k8s and exposed the ports via nodeport.

The ports 990,8883 and 3000 are reachable from DesktopPC via nodeip:nodeport - tested with nmap

`Starting Nmap 7.80 ( https://nmap.org ) at 2026-02-18 20:17
Nmap scan report for 10.10.200.30
Host is up (0.00045s latency).

PORT STATE SERVICE
990/tcp open ftps
3000/tcp open ppp
8883/tcp open secure-mqtt`

I want to use virtual printer in proxy mode and override interface ip to nodeip. I also added the bbl_ca.crt certificate to the bambustudio chain in printer.cer

When i wanted to connect Bambustudio to Bambuddy with add printer via access code and give nodeip 10.10.200.30 and real printer access code i got an connection error.

In Bambuddy app i installed for debugging reason tcpdump and i see connections from desktop pc - but the destination port is 3002 not 3000.

listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes 19:36:47.925042 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:47.925081 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 2773118643, win 0, length 0 19:36:48.438209 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:48.438264 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:48.952920 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:48.952961 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:49.467579 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:49.467619 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:49.981990 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:49.982047 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:51.990558 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:51.990622 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 686099843, win 0, length 0 19:36:52.492833 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:52.492867 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:52.994717 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:52.994755 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:53.498532 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:53.498588 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:54.013792 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:54.013827 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:56.021815 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:56.021874 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1714751014, win 0, length 0 19:36:56.535803 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:56.535842 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:57.051386 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:57.051434 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:57.554182 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:57.554242 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:58.069047 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:58.069101 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1, win 0, length 0

Expected Behavior

connection from Bambustudio to Bambuddy via port 3000

Steps to Reproduce

  1. In Bambustudio -> Device
  2. Add Device via access code
  3. fill in node ip and real printer access code

Printer Model

A1

Bambuddy Version

0.2.0

Printer Firmware Version

01.07.02.00

Installation Method

Other

Operating System

Other

Relevant Logs / Support Package

Support Package upload not working here - added it in additional context

Screenshots

No response

Additional Context

bambuddy-support-20260218-203239.zip

Checklist

  • I have searched existing issues to ensure this bug hasn't already been reported
  • I am using the latest version of Bambuddy
  • My printer is set to LAN Only mode
Originally created by @kaiminator on GitHub (Feb 18, 2026). Original GitHub issue: https://github.com/maziggy/bambuddy/issues/445 Originally assigned to: @maziggy on GitHub. ### Bug Description I am running Bambuddy in k8s and exposed the ports via nodeport. The ports 990,8883 and 3000 are reachable from DesktopPC via nodeip:nodeport - tested with nmap `Starting Nmap 7.80 ( https://nmap.org ) at 2026-02-18 20:17 Nmap scan report for 10.10.200.30 Host is up (0.00045s latency). PORT STATE SERVICE 990/tcp open ftps 3000/tcp open ppp 8883/tcp open secure-mqtt` I want to use virtual printer in proxy mode and override interface ip to nodeip. I also added the bbl_ca.crt certificate to the bambustudio chain in printer.cer When i wanted to connect Bambustudio to Bambuddy with add printer via access code and give nodeip 10.10.200.30 and real printer access code i got an connection error. In Bambuddy app i installed for debugging reason tcpdump and i see connections from desktop pc - but the destination port is 3002 not 3000. `listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes 19:36:47.925042 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:47.925081 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 2773118643, win 0, length 0 19:36:48.438209 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:48.438264 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:48.952920 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:48.952961 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:49.467579 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:49.467619 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:49.981990 eth0 In IP 10.10.10.100.36478 > 10.10.200.30.3002: Flags [S], seq 2773118642, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:49.982047 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36478: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:51.990558 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:51.990622 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 686099843, win 0, length 0 19:36:52.492833 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:52.492867 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:52.994717 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:52.994755 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:53.498532 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:53.498588 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:54.013792 eth0 In IP 10.10.10.100.36479 > 10.10.200.30.3002: Flags [S], seq 686099842, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:54.013827 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36479: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:56.021815 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:56.021874 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1714751014, win 0, length 0 19:36:56.535803 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:56.535842 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:57.051386 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:57.051434 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:57.554182 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:57.554242 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1, win 0, length 0 19:36:58.069047 eth0 In IP 10.10.10.100.36481 > 10.10.200.30.3002: Flags [S], seq 1714751013, win 65535, options [mss 1460,nop,wscale 8,nop,nop,sackOK], length 0 19:36:58.069101 eth0 Out IP 10.10.200.30.3002 > 10.10.10.100.36481: Flags [R.], seq 0, ack 1, win 0, length 0 ` ### Expected Behavior connection from Bambustudio to Bambuddy via port 3000 ### Steps to Reproduce 1. In Bambustudio -> Device 2. Add Device via access code 3. fill in node ip and real printer access code ### Printer Model A1 ### Bambuddy Version 0.2.0 ### Printer Firmware Version 01.07.02.00 ### Installation Method Other ### Operating System Other ### Relevant Logs / Support Package ```shell Support Package upload not working here - added it in additional context ``` ### Screenshots _No response_ ### Additional Context [bambuddy-support-20260218-203239.zip](https://github.com/user-attachments/files/25399016/bambuddy-support-20260218-203239.zip) ### Checklist - [x] I have searched existing issues to ensure this bug hasn't already been reported - [x] I am using the latest version of Bambuddy - [x] My printer is set to LAN Only mode
BreizhHardware 2026-05-06 12:27:49 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@maziggy commented on GitHub (Feb 19, 2026):

The additional connection on port 3000 was introduced with the latest(?) release of Bambu Studio. Obviuously we need to add a port range instead of only port 3000. Perhaps it's advertised by SSDP?

Anyway...I'm currently working on improving the virtual printer function so that it supports multiple printers. Will check for the new port requirements and add it to the new version.

Please wait a few days until I'm finished. Will let you know. Thanks.

<!-- gh-comment-id:3925168355 --> @maziggy commented on GitHub (Feb 19, 2026): The additional connection on port 3000 was introduced with the latest(?) release of Bambu Studio. Obviuously we need to add a port range instead of only port 3000. Perhaps it's advertised by SSDP? Anyway...I'm currently working on improving the virtual printer function so that it supports multiple printers. Will check for the new port requirements and add it to the new version. Please wait a few days until I'm finished. Will let you know. Thanks.
Author
Owner

@kaiminator commented on GitHub (Feb 19, 2026):

your are welcome - as a workaround i tried to manage to get a connection between bambuddy and bambustudio by port foward the node local port from 3002 to 3000 via iptables

sudo iptables -t nat -A PREROUTING -p tcp --dport 3002 -j REDIRECT --to-ports 3000

in this case the nodeport 3002 is open and localy redirect it to port 3000 - the traffic from Bambustudio now reaches Bambuddy, but never connects

if you need further informations don't hesitate to get in contact with me

2026-02-19 11:15:29,089 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client connected from 10.10.10.100:11339
2026-02-19 11:15:29,089 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: connected: 10.10.10.100:11339
2026-02-19 11:15:29,092 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: connected to printer 10.10.10.34:3000
2026-02-19 11:15:29,123 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client 10.10.10.100:11339 disconnected
2026-02-19 11:15:29,124 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: disconnected: 10.10.10.100:11339
2026-02-19 11:15:31,131 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client connected from 10.10.10.100:11340
2026-02-19 11:15:31,131 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: connected: 10.10.10.100:11340
2026-02-19 11:15:31,134 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: connected to printer 10.10.10.34:3000
2026-02-19 11:15:31,142 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client 10.10.10.100:11340 disconnected
2026-02-19 11:15:31,142 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: disconnected: 10.10.10.100:11340
2026-02-19 11:15:33,151 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client connected from 10.10.10.100:11341
2026-02-19 11:15:33,151 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: connected: 10.10.10.100:11341
2026-02-19 11:15:33,154 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: connected to printer 10.10.10.34:3000
2026-02-19 11:15:33,161 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client 10.10.10.100:11341 disconnected
2026-02-19 11:15:33,161 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: disconnected: 10.10.10.100:11341

<!-- gh-comment-id:3926209250 --> @kaiminator commented on GitHub (Feb 19, 2026): your are welcome - as a workaround i tried to manage to get a connection between bambuddy and bambustudio by port foward the node local port from 3002 to 3000 via iptables `sudo iptables -t nat -A PREROUTING -p tcp --dport 3002 -j REDIRECT --to-ports 3000` in this case the nodeport 3002 is open and localy redirect it to port 3000 - the traffic from Bambustudio now reaches Bambuddy, but never connects if you need further informations don't hesitate to get in contact with me 2026-02-19 11:15:29,089 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client connected from 10.10.10.100:11339 2026-02-19 11:15:29,089 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: connected: 10.10.10.100:11339 2026-02-19 11:15:29,092 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: connected to printer 10.10.10.34:3000 2026-02-19 11:15:29,123 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client 10.10.10.100:11339 disconnected 2026-02-19 11:15:29,124 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: disconnected: 10.10.10.100:11339 2026-02-19 11:15:31,131 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client connected from 10.10.10.100:11340 2026-02-19 11:15:31,131 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: connected: 10.10.10.100:11340 2026-02-19 11:15:31,134 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: connected to printer 10.10.10.34:3000 2026-02-19 11:15:31,142 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client 10.10.10.100:11340 disconnected 2026-02-19 11:15:31,142 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: disconnected: 10.10.10.100:11340 2026-02-19 11:15:33,151 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client connected from 10.10.10.100:11341 2026-02-19 11:15:33,151 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: connected: 10.10.10.100:11341 2026-02-19 11:15:33,154 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: connected to printer 10.10.10.34:3000 2026-02-19 11:15:33,161 INFO [backend.app.services.virtual_printer.tcp_proxy] Bind proxy: client 10.10.10.100:11341 disconnected 2026-02-19 11:15:33,161 INFO [backend.app.services.virtual_printer.manager] Proxy Bind: disconnected: 10.10.10.100:11341
Author
Owner

@maziggy commented on GitHub (Feb 19, 2026):

As said, please wait for the next beta release. There are major changes.

<!-- gh-comment-id:3926224507 --> @maziggy commented on GitHub (Feb 19, 2026): As said, please wait for the next beta release. There are major changes.
Author
Owner

@maziggy commented on GitHub (Feb 19, 2026):

Please try again with latest beta release 0.2.1b.

<!-- gh-comment-id:3927208229 --> @maziggy commented on GitHub (Feb 19, 2026): Please try again with latest beta release 0.2.1b.
Author
Owner

@kaiminator commented on GitHub (Feb 19, 2026):

tested 0.2.1.b and bambustudio is now connecting to virtual proxy port

2026-02-19 15:49:35,958 INFO [backend.app.services.virtual_printer.manager] [VP Bambuddy] Proxy MQTT: connected: 10.10.10.100:62613
2026-02-19 15:49:36,753 INFO [backend.app.services.virtual_printer.tcp_proxy] MQTT proxy: connected to printer 10.10.10.34:8883

<!-- gh-comment-id:3928286487 --> @kaiminator commented on GitHub (Feb 19, 2026): tested 0.2.1.b and bambustudio is now connecting to virtual proxy port 2026-02-19 15:49:35,958 INFO [backend.app.services.virtual_printer.manager] [VP Bambuddy] Proxy MQTT: connected: 10.10.10.100:62613 2026-02-19 15:49:36,753 INFO [backend.app.services.virtual_printer.tcp_proxy] MQTT proxy: connected to printer 10.10.10.34:8883
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy#274
No description provided.