How to connect directly to Duet Ethernet with Ethernet Cable?



  • Is it possible to control the Duet Ethernet directly (instead of through a network), using an ethernet cable from the Duet to my computer (and being able to use DWC)? If so, how do I set that up?



  • Yeap. I was doing it with mine until I got a switch to connect it to the network. You will need to setup a static IP address with your usb cable unless you have someway already of editing your config.g file remotely. Follow the instructions on setting them up in the documentation if you can't. Then connect the ethernet cable and set your computer ip address to the same range (ie duet 192.168.1.40 and your computer 192.168.1.2) and then you should be good to go.

    Regards,
    Sam



  • Sam is correct. To slightly clarify:

    • Plug an ethernet cable from the printer directly into an ethernet port on you PC.

    That cable is now a network. It is a separate network from anything else your PC is doing. Therefore, everything on it has to have an IP address that is different from your other networks.

    • Assuming that your home network is typical, all the devices on it will probably be 192.168.X.Y. Where Y is unique to a DEVICE and X is most often 0 or 1 or similar. Your cable to the printer MUST use a different X.

    • For example, if your home network results in your PC having an IP of 192.168.1.123, then your printer MUST not use 1 in that third digit.

    • In the above example, set the printer to 192.168.2.10 and set the ETHERNET INTERFACE in your PC to 192.168.2.11.

    • Sometimes, we tend to think of an IP address as applying to a "thing" or a "host", like a PC. Remember, an IP address applies to and INTERFACE on a host... so be sure the "192.168.2.x" addresses are used on the interface that is that ethernet cable.

    Of course, if your PC only has ONE interface, then none of the above matters. You PC will simply be on the printer network, and therefore off your home network, during the moments you have it plugged in that way.



  • @danal Don't you need a cross cable to directly connect?



  • @danal said in How to connect directly to Duet Ethernet with Ethernet Cable?:

    In the above example, set the printer to 192.168.2.10 and set the ETHERNET INTERFACE in your PC to 192.168.2.11.

    In your example there, your "X" values are the same. Did you mean to have a "1" where one of the "2"s are?


  • administrators

    @joergs5 said in How to connect directly to Duet Ethernet with Ethernet Cable?:

    @danal Don't you need a cross cable to directly connect?

    No, because modern PCs and laptops generally autodetect the cable orientation.



  • @dc42 Thanks. From my question you see that I am long in IT business...



  • @jml said in How to connect directly to Duet Ethernet with Ethernet Cable?:

    @danal said in How to connect directly to Duet Ethernet with Ethernet Cable?:

    In the above example, set the printer to 192.168.2.10 and set the ETHERNET INTERFACE in your PC to 192.168.2.11.

    In your example there, your "X" values are the same. Did you mean to have a "1" where one of the "2"s are?

    I believe the examples are correct.

    If your PC is going to be "multi interface" and your home network interface on the PC is, say, 192.168.1.123, then the "other" network that is the cable to the printer MUST have a different third digit than the home network. And the PC and the Printer MUST have the same third digit.

    Example:

    PC
    WiFi interface to home network: 192.168.1.123
    Ethernet interface to printer: 192.168.2.11

    Printer
    Ethernet interface to PC: 192.168.2.10



  • @joergs5 said in How to connect directly to Duet Ethernet with Ethernet Cable?:

    @danal Don't you need a cross cable to directly connect?

    A long time ago, yes, you'd need crossover cable, or a stand alone "hub". As @DC42 pointed out, nearly all modern Ethernet interfaces are "auto-polarity", and will "just work" with a standard cable.



  • I'm late to the party here, but for future reference... I wrote a blog post on getting a local ethernet connection to work.



  • Great I'll take a look at the blog post and everything else said here and hopefully I can get it working soon.



  • Just to clarify, if you want to separate the printer network from your home network, the third number (octet) does not necessarily have to be different...it depends on the subnet mask. If using a 24 bit mask (255.255.255.0) then the third number must be different but the ip address ranges can be subdivided using the mask so that a 192.168.1.0 network can be divided by using more than 24 bits in the mask. So with a 25 bit mask (255.255.255.128), it becomes one network with an address range from 192.168.1.1 - 192.168.1.126 and another with a range from 192.168.1.129 - 192.168.1.254.


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.