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

    How to set port on v1.19 Duet Wifi

    Scheduled Pinned Locked Moved
    General Discussion
    3
    9
    975
    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.
    • TickTockundefined
      TickTock
      last edited by

      I tried the M552, M586, & M587 - adding the Rxxx parameter (i.e. R8080, etc) as described in the gcode wiki but none seem to work. Always get port=80 message. I have literally dozens of IoT devices that I access through a single static IP so I really need the ability to specify the port.

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by

        M586 should work, although I can't remember whether on the Duet WiFi changing the port number was first supported in 1.19 or in 1.20. You may need to give the M586 command before the M552 S1 command that enables networking.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • whosrdaddyundefined
          whosrdaddy
          last edited by

          I use this sequence to set my Duet to port 21000:

          [[language]]
          M552 S1                                                ; Enable network
          M586 P0 S1 R21000                              ; Enable HTTP on Port 21000
          M586 P1 S0                                           ; Disable FTP
          M586 P2 S0                                           ; Disable Telnet
          
          
          1 Reply Last reply Reply Quote 0
          • TickTockundefined
            TickTock
            last edited by

            Thanks that worked. I was assigning a static IP with P192.168.0.16 and that seemed to be the problem. Going with P0 worked. I have the IP mapped to the MAC in the router as well so this works for me. Thanks!

            1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators
              last edited by

              Using a static IP address shouldn't make any difference.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • TickTockundefined
                TickTock
                last edited by

                "shouldn't" being the operative word.

                M586 P0 S1 R8090 worked
                M586 P192.168.0.16 S1 R8090 didn't

                But, as I said, it's not a big deal since I set the IP address elsewhere.

                1 Reply Last reply Reply Quote 0
                • whosrdaddyundefined
                  whosrdaddy
                  last edited by

                  you can't set IP with M586, you must use I/J/K parameters in M587 to assign static IP…

                  1 Reply Last reply Reply Quote 0
                  • dc42undefined
                    dc42 administrators
                    last edited by

                    @whosrdaddy:

                    you can't set IP with M586, you must use I/J/K parameters in M587 to assign static IP…

                    That's correct for the Duet WiFi. For the Duet Ethernet the ip address etc. is set in M552.

                    Duet WiFi hardware designer and firmware engineer
                    Please do not ask me for Duet support via PM or email, use the forum
                    http://www.escher3d.com, https://miscsolutions.wordpress.com

                    1 Reply Last reply Reply Quote 0
                    • TickTockundefined
                      TickTock
                      last edited by

                      @whosrdaddy:

                      you can't set IP with M586, you must use I/J/K parameters in M587 to assign static IP…

                      Ahh. Makes sense, now. It's all there in the Wiki - I was just not reading closely enough. Thanks again.

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