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

    Duet Ethernet with Octoprint

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    3
    14
    3.2k
    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.
    • thomaspjundefined
      thomaspj
      last edited by

      I am trying to use octoprint with the Duet Ethernet because of the web cam monitoring it offers which I am able to use outside of my network. My octoprint is all set up but it wont recognize the Duet as being connected. Any suggestions?

      1 Reply Last reply Reply Quote 0
      • Scottbg1undefined
        Scottbg1
        last edited by

        I fiddled around with Octoprint for the very reason that you stated. I wanted the web cam. I have a Duet Wifi.

        I connected the RasPi to the Duet board via the USB cable and it connected with no other setup.
        Are you getting an error message when you hit the 'Connect' button in Octoprint?

        FWIW, I ended up doing away with Octoprint. DWC does the exact same thing with a cleaner interface. Also you'd end up having to connect to DWC anyway if you needed to change any configuration. So I ported the Duet's ip so I could connect remotely.

        I setup the Raspberry Pi with Raspbian and loaded a camera app. I ported that address and then entered that into DWC's URL for a web cam. It works great!

        1 Reply Last reply Reply Quote 0
        • thomaspjundefined
          thomaspj
          last edited by

          My problem is I'm on an enterprise network so it works best to use the camera and control with octoprint. Also octoprint has some nice plugins I use but the interface is cleaner in DWC

          1 Reply Last reply Reply Quote 0
          • thomaspjundefined
            thomaspj
            last edited by

            @Scottbg1:

            I fiddled around with Octoprint for the very reason that you stated. I wanted the web cam. I have a Duet Wifi.

            I connected the RasPi to the Duet board via the USB cable and it connected with no other setup.
            Are you getting an error message when you hit the 'Connect' button in Octoprint?

            FWIW, I ended up doing away with Octoprint. DWC does the exact same thing with a cleaner interface. Also you'd end up having to connect to DWC anyway if you needed to change any configuration. So I ported the Duet's ip so I could connect remotely.

            I setup the Raspberry Pi with Raspbian and loaded a camera app. I ported that address and then entered that into DWC's URL for a web cam. It works great!

            I do get an error message when trying to connect about the available port not working

            1 Reply Last reply Reply Quote 0
            • Scottbg1undefined
              Scottbg1
              last edited by

              I'm not an enterprise guru, but from my limited experience you'll have to open both ends of the port.

              Most home networks the port going out is open by default. You'll have to open the outbound as well as the inbound, if I'm not mistaken.

              1 Reply Last reply Reply Quote 0
              • thomaspjundefined
                thomaspj
                last edited by

                After some testing, I found that I can access octoprint from anywhere as is because I'm at a University and the IP address is a WAN but for some reason i can't access the DWC from any computer other than one connected to the internet with an Ethernet cable, not even one on the WiFi. Any suggestions as to why.

                1 Reply Last reply Reply Quote 0
                • Scottbg1undefined
                  Scottbg1
                  last edited by

                  You must designate a static IP to your duet card in the LAN settings of the WIFI router.
                  Then go to WAN settings and forward a port to that static IP address.

                  When you are inside your network you should be able to successfully connect to DWC using the Local IP address.
                  If you want to connect OUTSIDE of the local network, then you must navigate to the PUBLIC Ip address and the port you have assigned to the Duet card.

                  Meaning is your Public IP address is 92.45.1.25, and you have assigned the Duet card to port 80 then you would open a browser and in it's address bar type "92.45.1.25:80" and it should connect.

                  I hope I understood you question and this was the answer you needed.

                  EDIT: I forgot that you mentioned you are in an enterprise network.
                  Assigning a static IP in the WIFI router should get you connected without having to forward a port to it as long as you ALWAYS connect to that WIFI connection.
                  But you'll have to assign ports from the Enterprise networks Firewall to connect from outside of the local network.

                  1 Reply Last reply Reply Quote 0
                  • Scottbg1undefined
                    Scottbg1
                    last edited by

                    Thomas, i just reread your message and I don't think I answered your question. But I will leave my answer above in case you need that info too.

                    Let me ask you this.

                    Do you have the Duet connected with an ethernet cable to the WIFI router, or is it plugged into the wall?
                    You mentioned you were on an enterprise network. I am guessing there is a separate switch or router handling wired connections in your local network.

                    1 Reply Last reply Reply Quote 0
                    • thomaspjundefined
                      thomaspj
                      last edited by

                      @Scottbg1:

                      Thomas, i just reread your message and I don't think I answered your question. But I will leave my answer above in case you need that info too.

                      Let me ask you this.

                      Do you have the Duet connected with an ethernet cable to the WIFI router, or is it plugged into the wall?
                      You mentioned you were on an enterprise network. I am guessing there is a separate switch or router handling wired connections in your local network.

                      I'm at a large university so it is just plugged into the wall, but using the same Ethernet port and cable with the octoprint allows me to pull it up on the WiFi but the DWC can only pulled up on devices with an Ethernet connection.

                      1 Reply Last reply Reply Quote 0
                      • Scottbg1undefined
                        Scottbg1
                        last edited by

                        Your WIFI router, if the Firewall is enabled will assign it's own ip addresses for devices that are connected to it. So in this case the DUET is not connected to it so it has not been assigned.

                        Meaning if you have plugged the DUET into the wall, the network switch has assigned 192.168.1.200 to it.
                        If you try to connect to that address over WIFI, the router doesn't know what you are looking for because it has it's own 192.168.1.200 and it has either assigned that to another device that would cause a conflict, or it hasn't been assigned at all.

                        A simple fix would be to plug the DUET into the WIFI router. Allow the router to assign an IP and then you can connect to it wirelessly. But then you won't be able to connect via a wired connection.

                        To have both, you'll need to disable the Firewall in the WIFI router, and allow the University's switch to be the sole assigner of IP addresses. Get with the school's IT dept and they should be able to fix this for you very easily.

                        1 Reply Last reply Reply Quote 0
                        • Scottbg1undefined
                          Scottbg1
                          last edited by

                          Also, I'll add that you are able to connect to Octoprint over Wifi because I am guessing your Raspberry Pi is connected over WIFI.
                          Hence you being able to connect to Octoprint, but not the Duet which is plugged into a total different router.

                          1 Reply Last reply Reply Quote 0
                          • thomaspjundefined
                            thomaspj
                            last edited by

                            @Scottbg1:

                            Also, I'll add that you are able to connect to Octoprint over Wifi because I am guessing your Raspberry Pi is connected over WIFI.
                            Hence you being able to connect to Octoprint, but not the Duet which is plugged into a total different router.

                            The Octoprint is connected over a tethered ethernet cable same setup as the DWC. Thanks I'll see if the IT department can help

                            1 Reply Last reply Reply Quote 0
                            • number40fanundefined
                              number40fan
                              last edited by

                              If you have your laptop connected to the network wirelessly and you have your Octoprint connected with a cable, you can connect to it?

                              If you try the same with the Duet, it won't work?

                              But, it will work if you hook your laptop up to the network with a cable?

                              1 Reply Last reply Reply Quote 0
                              • thomaspjundefined
                                thomaspj
                                last edited by

                                @number40fan:

                                If you have your laptop connected to the network wirelessly and you have your Octoprint connected with a cable, you can connect to it?

                                If you try the same with the Duet, it won't work?

                                But, it will work if you hook your laptop up to the network with a cable?

                                Correct

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