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

    Set hostname on Duet2 wifi

    Scheduled Pinned Locked Moved
    General Discussion
    3
    10
    170
    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.
    • Dave2025undefined
      Dave2025
      last edited by

      Hi, so Im looking if anyone can tell me how to set the hostname on Duet2 wifi boards? Looking through the documentation there's no mention of how to do this or if its even a feature. I did a google search and googles AI says something about executing the M589 S"[hostname] command. I tried that in the DWC web gui terminal and it did absolutely nothing except give me the error "Missing parameter P" Im assuming P has something to do with entering a password value but all i want is to set the hostname. Anyways if its important to know I'm running : Duet 2 WiFi 2WiFi 3.5.4 Duet WiFi Server n/a 1.27 Duet Web Control DWC 3.5.4

      Anyways can someone tell me how to set hostname please? Thanks

      gloomyandyundefined 1 Reply Last reply Reply Quote 0
      • gloomyandyundefined
        gloomyandy @Dave2025
        last edited by

        @Dave2025 See M550 in the Duet GCode documentation: https://docs.duet3d.com/User_manual/Reference/Gcodes#m550-set-name

        Dave2025undefined 1 Reply Last reply Reply Quote 0
        • Dave2025undefined
          Dave2025 @gloomyandy
          last edited by Dave2025

          @gloomyandy Thanks but I think this only sets the printers name for the DWC's display name. I had also been looking at M550 in the config.g file and but it doesn't change the DHCP host name. When looking at the connected devices list in my router the Duet2 wifi board still has no host name only a IP address wether I change the M500 P or not

          gloomyandyundefined 1 Reply Last reply Reply Quote 0
          • gloomyandyundefined
            gloomyandy @Dave2025
            last edited by gloomyandy

            @Dave2025 From the M550 documentation:

            The machine name is also used to allow local network discovery using mDNS local network discovery. Rather than
            remembering the ip address of the printer to connect to, or having to find it if assigned by DHCP (mDNS works both with fixed
            ip address and DHCP), you can use it's name. Using the example name above, in your browser connect to the DWC with
            http://Godzilla.local.
            

            In terms of DHCP you may need to reboot the board (or depending upon your router even wait for the DHCP lease to expire), but it should eventually show up. But really that does not matter if your network supports mDNS.

            Dave2025undefined 1 Reply Last reply Reply Quote 0
            • Dave2025undefined
              Dave2025 @gloomyandy
              last edited by

              @gloomyandy said in Set hostname on Duet2 wifi:

              mDNS

              Alrite well Im not sure how to reset the lease and it says it expires in 11hrs so ill just wait because I need a break from all this anyways. I also tried to install a mDNS package on the router I have here but this is all new technology to me so I give up. Anyways thanks. Hopefully in 11 hours it will get a new IP and be using the hostname set with m550 as well

              gloomyandyundefined 1 Reply Last reply Reply Quote 0
              • gloomyandyundefined
                gloomyandy @Dave2025
                last edited by

                @Dave2025 Did you try just connecting to <hostname>.local ? That will usually work on most networks without needing any router support. You may also want to upgrade your WiFi firmware, 2.2.0 is I think the current version for Duet boards.

                Dave2025undefined 1 Reply Last reply Reply Quote 0
                • Dave2025undefined
                  Dave2025 @gloomyandy
                  last edited by

                  @gloomyandy said in Set hostname on Duet2 wifi:

                  .local

                  Ok weird, I can connect to <hostname>.local and the DWC loads in the browser but when looking at the DHCP list in my router it does not show the host name. Ok thanks I guess this is working kinda. Also where do I find the 2.2.0 wifi firmware? Is it the DuetWiFiServer.bin from the 3.5.4 github release? Anyways thanks this is working

                  jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk @Dave2025
                    last edited by

                    @Dave2025 yes, that's the correct file

                    Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                    Dave2025undefined 1 Reply Last reply Reply Quote 0
                    • Dave2025undefined
                      Dave2025 @jay_s_uk
                      last edited by Dave2025

                      @jay_s_uk Hey sorry if im getting annoying but after updating with the DuetWiFiServer.bin from the 3.5.4 github release in YAT im getting there "Error: WiFi module reported: Didn't find access point" and then the Duet2 wifi is not connecting. If i then go and put the original old DuetWiFiServer.bin that I backed up back onto the SD card in the /sys dir and then with YAT run M997 S1 to reinstall the old wifi firmware and now I can connect again. Am I suppose to be upgrading the versions in order because I don't remember which one it was one before I've updated the DWC and firmware to 3.4.5? All I know is the current and working version I have installed is Duet WiFi Server 1.27

                      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                      • jay_s_ukundefined
                        jay_s_uk @Dave2025
                        last edited by

                        @Dave2025 that's the right file. You may want to try wiping the access point details and reloading them using M587. There's no set order to install stuff in

                        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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