Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Unable to set HTTP Port for DWC (M586 R) [SBC mode]

    Scheduled Pinned Locked Moved
    Duet Web Control
    2
    3
    77
    Loading More Posts
    • 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.
    • e_cubed99undefined
      e_cubed99
      last edited by dc42

      Provisioning a new board, having difficulty changing the DWC HTTP port. Ideally I want to access via port 1000, so x.x.x.x:1000 - GCode Dictionary indicates M586 should be able to configure this with the R field.

      M586 P0 T0 S1 R1000
      

      I am issuing the above command, expecting to turn on HTTP on port 1000. Instead it turns it on at default port. So seems to be ignoring the R flag. Is there something else that has to be set first? Some other way to configure this? SBC mode require something different?

      Not sure what I'm doing wrong, hoping the community can help me out.

      Environment is a Duet 3 Mini 5+ running v3.5.4. This is in SBC mode with a RPi4 running 64 bit DuetPi image from 2024-09-19.

      Here's a console log:

      M115
      FIRMWARE_NAME: RepRapFirmware for Duet 3 Mini 5+ FIRMWARE_VERSION: 3.5.4 ELECTRONICS: Duet 3 Mini5plus Ethernet FIRMWARE_DATE: 2024-11-24 10:44:24
      ok
      M586
      HTTP is disabled
      HTTPS is disabled
      CORS disabled
      FTP is disabled
      SFTP is disabled
      Telnet is disabled
      SSH is enabled on port 22
      ok
      M586 P0 S1 R1000
      ok
      M586
      HTTP is enabled on port 80
      HTTPS is disabled
      CORS disabled
      FTP is disabled
      SFTP is disabled
      Telnet is disabled
      SSH is enabled on port 22
      ok
      
      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @e_cubed99
        last edited by

        @e_cubed99 I'm sorry, the command you mentioned should work, but there appears to be a bug in the plugin that handles network management. I just fixed it for the next version.

        For the moment you need to edit /opt/dsf/conf/http.json and change the URL from port 80 to 1000. When done, restart the Pi or the web server (sudo systemctl restart duetwebserver).

        Duet software engineer

        e_cubed99undefined 1 Reply Last reply Reply Quote 0
        • e_cubed99undefined
          e_cubed99 @chrishamm
          last edited by

          @chrishamm - Thanks for the quick response! Bummer on the anomaly, but the file edit workaround is great for now. Really appreciate the help.

          E^3

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA