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

    Changing ports

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    3
    8
    419
    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.
    • JBiscundefined
      JBisc
      last edited by JBisc

      @chrishamm recommended me for another problem to change my DWC port.

      I changed
      /opt/dsf/conf/http.json
      into

      ...
        "Kestrel": {
          "Endpoints": {
            "Http": {
              "Url": "http://*:1000"
            }
          }
      
      ...
      

      but after an restart, even if I was able to connect to //my:1000 and DWC was responding, the DWC is not able to connect to the Duetboard.

      Is there a second config file which I have to change?

      f5c5b9b9-b471-4048-aaef-6848c216ab46-image.png

      Setup:
      SW 3.2 Duet3
      not standalone mode

      My Setup: Duet 3 MB6HC Main Board with attached RPI

      1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators
        last edited by chrishamm

        That's all good but don't forget to restart the web server when you're done:

        sudo systemctl restart duetwebserver
        

        I just checked this and it's working as expected.

        PS: If it didn't work the first time, make sure you're connecting over HTTP and not over HTTPS. Some browsers change the protocol in the URL from HTTP to HTTPS when the first connection attempt failed.

        Duet software engineer

        1 Reply Last reply Reply Quote 0
        • JBiscundefined
          JBisc
          last edited by JBisc

          @chrishamm Ok? That's interesting. I used http://192.168.1.7:1000/ and checked that it was http and it did not work.

          Changed my config back by removing the port. Restarted Server -> worked again.

          My Setup: Duet 3 MB6HC Main Board with attached RPI

          chrishammundefined 1 Reply Last reply Reply Quote 0
          • chrishammundefined
            chrishamm administrators @JBisc
            last edited by chrishamm

            @JBisc Did you try another port? It's definitely working on my setup with 3.2 and I can confirm the DWC WebSocket+REST requests go to port 1000 too.

            Edit: Interesting, it stopped working after a reboot. Can you addM586 C"*" to your config file and check if that helps? It might be a CORS problem.

            Duet software engineer

            JBiscundefined 1 Reply Last reply Reply Quote 0
            • T3P3Tonyundefined
              T3P3Tony administrators
              last edited by

              db196bcb-e611-4ccf-8b25-85566e9de671-image.png

              www.duet3d.com

              T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
              • T3P3Tonyundefined
                T3P3Tony administrators @T3P3Tony
                last edited by T3P3Tony

                ☝ for Christian who is having issues with posting images

                www.duet3d.com

                1 Reply Last reply Reply Quote 0
                • JBiscundefined
                  JBisc @chrishamm
                  last edited by

                  As so often: @chrishamm has the right answer!

                  M586 C"*"
                  

                  helped! Thanks!

                  My Setup: Duet 3 MB6HC Main Board with attached RPI

                  chrishammundefined 1 Reply Last reply Reply Quote 0
                  • chrishammundefined
                    chrishamm administrators @JBisc
                    last edited by chrishamm

                    @JBisc Thanks for confirming, I'll work out a fix for the next DWS version.

                    PS: I've got a fix ready, it will be part of the next software release.

                    Duet software engineer

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