Incorrect host address and couldn't connect to Moonraker #86

Open
opened 2026-07-04 23:47:06 +02:00 by Florent-H · 2 comments

Description

Instead of the Web UI address being http://BRIDGE-IP:7125, I found that http://0.0.0.0:7125 worked, based on what was printed in the console when I first ran the executable:

[18:14:41] INFO  bridge: [Drucker 1] Verbinde mit :9883 …
[18:14:43] WARNING bridge: [Drucker 1] Verbindung fehlgeschlagen: [WinError 10061] No connection could be made because the target machine actively refused it – Offline-Modus
[18:14:43] INFO  bridge: [Printer 1] Bridge running on http://0.0.0.0:7125
[18:14:43] INFO  bridge: OrcaSlicer → Klipper → Host: 192.168.2.14  Ports: 7125
[18:14:43] INFO  bridge: Ctrl-C zum Beenden

However, neither http://BRIDGE-IP:7125 or http://0.0.0.0:7125 worked in OrcaSlicer.

Steps to Reproduce

  1. Download and unpack kx-bridge-windows.zip
  2. Run kx-bridge.exe
  3. Navigate to http://0.0.0.0:7125
  4. Add Kobra X printer via IP address
  5. Open OrcaSlicer and add physical machine
  6. Change Host Type and Printer Type to Moonraker
  7. Test http://0.0.0.0:7125 (or http://BRIDGE-IP:7125) in Hostname field

Expected Behavior

KX-Bridge would complete the connection

Actual Behavior

OrcaSlicer gives me this error:

Couldn't connect to Moonraker. curl:Couldn't connect to server. Failed to connect to 0.0.0.0 port 7125: Address not available [Error 7]

Here is the output of kx-bridge.exe:

[18:39:54] INFO  bridge: [Drucker 1] Verbinde mit 192.168.2.65:9883 …
[18:39:54] INFO  kobrax.mqtt: TLS connected  cipher=TLS_AES_256_GCM_SHA384
[18:39:54] INFO  kobrax.mqtt: CONNACK rc=0
[18:39:54] INFO  kobrax.mqtt: SUB anycubic/anycubicCloud/v1/printer/public/20030/91a581658b4249efadaff62259c9e519/#
[18:39:55] INFO  bridge: [Drucker 1] MQTT verbunden
[18:39:55] INFO  bridge: [Printer 1] Bridge running on http://0.0.0.0:7125
[18:39:55] INFO  bridge: OrcaSlicer → Klipper → Host: 192.168.2.14  Ports: 7125
[18:39:55] INFO  bridge: Ctrl-C zum Beenden
[18:39:55] INFO  kobrax.mqtt: RX 91a581658b4249efadaff62259c9e519/response  state=              data=null
[18:39:55] INFO  kobrax.mqtt: RX info/report                state=done          data={"aux_fan_speed_pct": 0, "box_fan_level": 0.0, "fan_speed_pct": 0, "features": {"auto_leveling_support": true, "camera_timelapse_support": true, "delete_batch_support": false, "drying_first_support": false, "flow_calibration_support": true, "fod_support": true, "gcode_3mf_support": true, "pre_cancel_support": true, "preheating_support": true, "shengwang_rdt_support": true, "shengwang_rtc_support": true, "vibration_compensation_support": true}, "ip": "192.168.2.65", "model": "Anycubic Kobra X", "print_speed_mode": 2, "printerName": "Anycubic Kobra X", "project": null, "state": "free", "temp": {"curr_hotbed_temp": 24, "curr_nozzle_temp": 26, "target_hotbed_temp": 0, "target_nozzle_temp": 0}, "urls": {"fileUploadurl": "http://192.168.2.65:18910/gcode_upload?s=xiWvZbbhTx", "rtspUrl": "http://192.168.2.65:18088/live/gppVTXyA"}, "version": "1.1.5.3"}
[18:39:55] INFO  kobrax.mqtt: RX multiColorBox/report       state=success       data={"head_tools_model": 1, "multi_color_box": [{"auto_feed": 0, "drying_status": {"duration": 0, "remain_time": 0, "status": 0, "target_temp": 0}, "feed_status": {"code": 200, "current_status": -1, "slot_index": -1, "type": -1}, "humidity": 0, "id": -1, "loaded_slot": -1, "model_id": 40002, "slots": [{"color": [33, 39, 33], "color_group": [[33, 39, 33, 255]], "consumables_percent": 100, "edit_status": 1, "icon_type": 0, "index": 0, "sku": "", "status": 5, "type": "PLA", "weight": 1000}, {"color": [255, 255, 255], "color_group": [[255, 255, 255, 255]], "consumables_percent": 100, "edit_status": 1, "icon_type": 0, "index": 1, "sku": "", "status": 5, "type": "PLA", "weight": 1000}, {"color": [0, 134, 214], "color_group": [[0, 134, 214, 255]], "consumables_percent": 100, "edit_status": 1, "icon_type": 0, "index": 2, "sku": "", "status": 5, "type": "PLA", "weight": 1000}, {"color": [255, 106, 20], "color_group": [[255, 106, 20, 255]], "consumables_percent": 100, "edit_status": 1, "icon_type": 0, "index": 3, "sku": "", "status": 5, "type": "PLA", "weight": 1000}], "status": 1, "temp": 0}]}
[18:39:55] INFO  bridge: AMS-Slots empfangen: 4, loaded_slot=-1
[18:39:58] INFO  bridge: AMS-Slots empfangen: 4, loaded_slot=-1
[18:40:01] INFO  bridge: AMS-Slots empfangen: 4, loaded_slot=-1

Thank you for any help!

## Environment
- KX-Bridge Version: 0.9.27
- OrcaSlicer Version: 2.4.1
- Moonraker/Klipper Version:
- Operating System: Windows 11 Pro
- Installation: Binary
## Description Instead of the Web UI address being `http://BRIDGE-IP:7125`, I found that `http://0.0.0.0:7125` worked, based on what was printed in the console when I first ran the executable: ``` [18:14:41] INFO bridge: [Drucker 1] Verbinde mit :9883 … [18:14:43] WARNING bridge: [Drucker 1] Verbindung fehlgeschlagen: [WinError 10061] No connection could be made because the target machine actively refused it – Offline-Modus [18:14:43] INFO bridge: [Printer 1] Bridge running on http://0.0.0.0:7125 [18:14:43] INFO bridge: OrcaSlicer → Klipper → Host: 192.168.2.14 Ports: 7125 [18:14:43] INFO bridge: Ctrl-C zum Beenden ``` However, neither `http://BRIDGE-IP:7125` or `http://0.0.0.0:7125` worked in OrcaSlicer. ## Steps to Reproduce 1. Download and unpack `kx-bridge-windows.zip` 2. Run `kx-bridge.exe` 3. Navigate to `http://0.0.0.0:7125` 4. Add Kobra X printer via IP address 5. Open OrcaSlicer and add physical machine 6. Change Host Type and Printer Type to Moonraker 7. Test http://0.0.0.0:7125 (or http://BRIDGE-IP:7125) in Hostname field ## Expected Behavior KX-Bridge would complete the connection ## Actual Behavior OrcaSlicer gives me this error: `Couldn't connect to Moonraker. curl:Couldn't connect to server. Failed to connect to 0.0.0.0 port 7125: Address not available [Error 7]` Here is the output of `kx-bridge.exe`: ``` [18:39:54] INFO bridge: [Drucker 1] Verbinde mit 192.168.2.65:9883 … [18:39:54] INFO kobrax.mqtt: TLS connected cipher=TLS_AES_256_GCM_SHA384 [18:39:54] INFO kobrax.mqtt: CONNACK rc=0 [18:39:54] INFO kobrax.mqtt: SUB anycubic/anycubicCloud/v1/printer/public/20030/91a581658b4249efadaff62259c9e519/# [18:39:55] INFO bridge: [Drucker 1] MQTT verbunden [18:39:55] INFO bridge: [Printer 1] Bridge running on http://0.0.0.0:7125 [18:39:55] INFO bridge: OrcaSlicer → Klipper → Host: 192.168.2.14 Ports: 7125 [18:39:55] INFO bridge: Ctrl-C zum Beenden [18:39:55] INFO kobrax.mqtt: RX 91a581658b4249efadaff62259c9e519/response state= data=null [18:39:55] INFO kobrax.mqtt: RX info/report state=done data={"aux_fan_speed_pct": 0, "box_fan_level": 0.0, "fan_speed_pct": 0, "features": {"auto_leveling_support": true, "camera_timelapse_support": true, "delete_batch_support": false, "drying_first_support": false, "flow_calibration_support": true, "fod_support": true, "gcode_3mf_support": true, "pre_cancel_support": true, "preheating_support": true, "shengwang_rdt_support": true, "shengwang_rtc_support": true, "vibration_compensation_support": true}, "ip": "192.168.2.65", "model": "Anycubic Kobra X", "print_speed_mode": 2, "printerName": "Anycubic Kobra X", "project": null, "state": "free", "temp": {"curr_hotbed_temp": 24, "curr_nozzle_temp": 26, "target_hotbed_temp": 0, "target_nozzle_temp": 0}, "urls": {"fileUploadurl": "http://192.168.2.65:18910/gcode_upload?s=xiWvZbbhTx", "rtspUrl": "http://192.168.2.65:18088/live/gppVTXyA"}, "version": "1.1.5.3"} [18:39:55] INFO kobrax.mqtt: RX multiColorBox/report state=success data={"head_tools_model": 1, "multi_color_box": [{"auto_feed": 0, "drying_status": {"duration": 0, "remain_time": 0, "status": 0, "target_temp": 0}, "feed_status": {"code": 200, "current_status": -1, "slot_index": -1, "type": -1}, "humidity": 0, "id": -1, "loaded_slot": -1, "model_id": 40002, "slots": [{"color": [33, 39, 33], "color_group": [[33, 39, 33, 255]], "consumables_percent": 100, "edit_status": 1, "icon_type": 0, "index": 0, "sku": "", "status": 5, "type": "PLA", "weight": 1000}, {"color": [255, 255, 255], "color_group": [[255, 255, 255, 255]], "consumables_percent": 100, "edit_status": 1, "icon_type": 0, "index": 1, "sku": "", "status": 5, "type": "PLA", "weight": 1000}, {"color": [0, 134, 214], "color_group": [[0, 134, 214, 255]], "consumables_percent": 100, "edit_status": 1, "icon_type": 0, "index": 2, "sku": "", "status": 5, "type": "PLA", "weight": 1000}, {"color": [255, 106, 20], "color_group": [[255, 106, 20, 255]], "consumables_percent": 100, "edit_status": 1, "icon_type": 0, "index": 3, "sku": "", "status": 5, "type": "PLA", "weight": 1000}], "status": 1, "temp": 0}]} [18:39:55] INFO bridge: AMS-Slots empfangen: 4, loaded_slot=-1 [18:39:58] INFO bridge: AMS-Slots empfangen: 4, loaded_slot=-1 [18:40:01] INFO bridge: AMS-Slots empfangen: 4, loaded_slot=-1 ``` Thank you for any help! ``` ## Environment - KX-Bridge Version: 0.9.27 - OrcaSlicer Version: 2.4.1 - Moonraker/Klipper Version: - Operating System: Windows 11 Pro - Installation: Binary
Florent-H added the
bug
label 2026-07-04 23:47:06 +02:00
Author

Based on the kx-bridge.exe console prints, I found that using the hostname http://192.168.2.14:7125 completed the Moonraker connection.
However, it looks like the addresses are all over the place and should be looked at.
But thank you again for developing this great software! =)

Based on the `kx-bridge.exe` console prints, I found that using the hostname `http://192.168.2.14:7125` completed the Moonraker connection. However, it looks like the addresses are all over the place and should be looked at. But thank you again for developing this great software! =)
Owner

Fixed in nightly. The startup log now shows the actual LAN IP instead of 0.0.0.0. The bridge already determined the correct local IP via a UDP socket trick — the log line just was not using it yet. The line you want to copy for OrcaSlicer is now: OrcaSlicer → Klipper → http://<your-ip>:<port>

Fixed in nightly. The startup log now shows the actual LAN IP instead of `0.0.0.0`. The bridge already determined the correct local IP via a UDP socket trick — the log line just was not using it yet. The line you want to copy for OrcaSlicer is now: `OrcaSlicer → Klipper → http://<your-ip>:<port>`
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: viewit/KX-Bridge-Release#86
No description provided.