Clon1998 / mobileraker

A Flutter mobile app for Klipper/Moonraker
Other
488 stars 55 forks source link

When the klipper is mapped to a non-80 port, the camera automatically references the 80 port prefix. #289

Closed alexands closed 11 months ago

alexands commented 11 months ago

Bug Report

Description

When the klipper is mapped to a non-80 port, the camera automatically references the 80 port prefix.

Steps to Reproduce

  1. Add a printer with domain names that use a non-80 port
  2. See the error.

Expected Behavior

Maybe fix this on the next version?

Screenshots

微信图片_20231127145333 微信图片_20231127145242

Version Information

Checklist

To help us diagnose the issue, please ensure you've completed the following steps:

Clon1998 commented 11 months ago

Hey, This is an expected behavior. Most users don't bother using a custom port for the webserver/cam even if they change the moonraker ports. Therefore, the app always uses port 80 rather than the moonraker port for relative cam-URLs. If you need to use a custom port for any webcam, you will need to use an absolute cam-URL that includes the port.

E.g., if your cam is running on port 90, you will need to adjust the cam-URL to: http://<printer-ip>:90/webcam/?<query-params>.