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

    Not retaining network IP

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    4
    19
    727
    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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      The steps needed to do a DHCP reservation will depend on your wireless router. You'd need to check your manual.

      If that proves impossible, you could try setting the IP address in the config.g but you risk using an IP address that your wireless router could give to another device, causing a conflict. You'd need to determine the IP address range being used by the router and pick an address outside of that range.

      See here for manually setting the IP for the Duet.

      https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m552-set-ip-address-enabledisable-network-interface

      Z-Bot CoreXY Build | Thingiverse Profile

      Trev133undefined 1 Reply Last reply Reply Quote 0
      • Trev133undefined
        Trev133 @Phaedrux
        last edited by

        @phaedrux I have been using the process as attached for manually setting the ip. The duet doesn’t seem to remember it and next time I switch on I have to start the process again. Am I missing a point in the setup where I should be saving the ip?

        1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          Post your config.g

          Z-Bot CoreXY Build | Thingiverse Profile

          Trev133undefined 1 Reply Last reply Reply Quote 0
          • Trev133undefined
            Trev133 @Phaedrux
            last edited by

            @phaedrux
            cd39aa8f-1730-4726-abc1-5b20c7815959-image.png

            1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator
              last edited by

              How are you trying to define the IP address currently?

              Over wifi you can set the Duet address when setting up the SSID you connect to with M587

              https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m587-add-wifi-host-network-to-remembered-list-or-list-remembered-networks

              Inn.nn.nn.nn (optional) IP address to use when connected to this network. If zero or not specified then an IP address will be acquired via DHCP.

              Z-Bot CoreXY Build | Thingiverse Profile

              Trev133undefined 1 Reply Last reply Reply Quote 0
              • Trev133undefined
                Trev133 @Phaedrux
                last edited by

                @phaedrux I have been using M587 via Yat software and as defined in the process you attached, each time a new ip is assigned and I can run machine but this ip is not being retained when I return in a few days time. Will go through the process again tomorrow and let you know incase I am doing something wrong.

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator
                  last edited by

                  Can you send M587 by itself and see what it reports?

                  Z-Bot CoreXY Build | Thingiverse Profile

                  Trev133undefined 1 Reply Last reply Reply Quote 0
                  • Trev133undefined
                    Trev133 @Phaedrux
                    last edited by

                    @phaedrux so I understand, you mean send M587 via Yat software and see what it returns?

                    droftartsundefined 1 Reply Last reply Reply Quote 0
                    • droftartsundefined
                      droftarts administrators @Trev133
                      last edited by

                      @trev133 said in Not retaining network IP:

                      @phaedrux so I understand, you mean send M587 via Yat software and see what it returns?

                      Yes. It should report something like:

                      M587
                      Remembered networks:
                      BT-3HATHX IP=0.0.0.0 GW=0.0.0.0 NM=0.0.0.0
                      

                      Do this before you set it in YAT. You should get a list of all remembered networks.

                      Ian

                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                      Trev133undefined 1 Reply Last reply Reply Quote 0
                      • Trev133undefined
                        Trev133 @droftarts
                        last edited by

                        @droftarts Thanks Ian for your help, you have probably worked out I am no expert at this. When I put in M587 as suggested I get response as photo attached. I tried M588 to remove remembered network which doesn’t look right. .14 (there are usually 3 numbers.) Removing it doesn’t work, I am sure I am missing something. When I try setting up new ip using M587 I get OK response but never get the new ip address

                        Trev133undefined 1 Reply Last reply Reply Quote 0
                        • Trev133undefined
                          Trev133 @Trev133
                          last edited by

                          @trev133
                          43CA935F-DB00-4476-9652-51F5231FDD8C.jpeg

                          1 Reply Last reply Reply Quote 0
                          • Phaedruxundefined
                            Phaedrux Moderator
                            last edited by Phaedrux

                            First, you'll need to change the line endings in YAT so we can see multiple lines.

                            yat.png

                            Second, the command to forget networks is M588 S"*"

                            Also, sending M552 by itself will give some information as well.

                            Z-Bot CoreXY Build | Thingiverse Profile

                            Trev133undefined 3 Replies Last reply Reply Quote 0
                            • Trev133undefined
                              Trev133 @Phaedrux
                              last edited by

                              @phaedrux will have a look and get back to you👍

                              1 Reply Last reply Reply Quote 0
                              • Trev133undefined
                                Trev133 @Phaedrux
                                last edited by

                                @phaedrux A21EA6B3-29D6-4208-8550-07CDC678A8D3.jpeg

                                1 Reply Last reply Reply Quote 0
                                • Trev133undefined
                                  Trev133 @Phaedrux
                                  last edited by

                                  @phaedrux have managed to get new ip 192.168.1.156. And got machine working, it seems to be retaining ip so far. The files just sent were taken after achieving 192.168.1.156 ip

                                  1 Reply Last reply Reply Quote 0
                                  • Norderundefined
                                    Norder @Trev133
                                    last edited by

                                    @trev133
                                    You should give the Duet a fixed IP in your router.
                                    Otherwise it can happen if your Duet is switched off and a new device dials into your WLAN, the Duet will be assigned a new IP the next time it is started.

                                    If this is the case, look in your router menu for the devices that have connected via WLAN.
                                    There you will also see the newly assigned IP for the Duet and you can connect to the DWC via browser.

                                    If your Duet has a fixed IP in your router, this will no longer happen if other or new devices take the IP away from the Duet.

                                    Have a look on YouTube how to assign a fixed IP to a device in your router.
                                    I'm almost certain there is such a video.

                                    Google Translate
                                    ----- Original Text -----

                                    Du solltest in Deinem Router dem Duet eine feste IP vergeben.
                                    Sonst kann es passieren wenn Dein Duet ausgeschaltet ist und sich ein neues Gerät in Dein WLAN einwählt, dem Duet beim nächsten Start eine neue IP zugewiesen wird.

                                    Sollte das der Fall sein, sehe in Deinem Router Menü nach den Geräten die sich per WLAN verbunden haben.
                                    Dort siehst Du dann auch die neu vergebenen IP fĂĽr das Duet und Du kannst Dich per Browser mit dem DWC verbinden.

                                    Hat Dein Duet eine feste IP in Deinem Router, dann passiert dieses nicht mehr, das andere oder neue Geräte dem Duet die IP wegnehmen.

                                    Guck mal bei YouTube nach wie man in Deinem Router einem Gerät eine feste IP zuweist.
                                    Ich bin mir fast sicher das es so ein Video gibt.

                                    DDA5X... 0.9° Stepper... Linearrails... Duet 2 Wifi... PT100 Board... Duet IR-Probe... Dyze Pro Kit up to 500°C.. etc
                                    Thingiverse

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