• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    TickTock
    last edited by 25 Feb 2018, 15:51

    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
    • undefined
      dc42 administrators
      last edited by 25 Feb 2018, 17:23

      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
      • undefined
        whosrdaddy
        last edited by 25 Feb 2018, 20:25

        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
        • undefined
          TickTock
          last edited by 25 Feb 2018, 21:52

          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
          • undefined
            dc42 administrators
            last edited by 25 Feb 2018, 22:21

            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
            • undefined
              TickTock
              last edited by 26 Feb 2018, 11:01

              "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
              • undefined
                whosrdaddy
                last edited by 26 Feb 2018, 11:08

                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
                • undefined
                  dc42 administrators
                  last edited by 26 Feb 2018, 12:00

                  @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
                  • undefined
                    TickTock
                    last edited by 26 Feb 2018, 14:32

                    @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
                    3 out of 9
                    • First post
                      3/9
                      Last post
                    Unless otherwise noted, all forum content is licensed under CC-BY-SA