This document covers networking options in more detail, including setting up a Duet 2 WiFi and Duet 3 Mini 5+ WiFi in Access Point mode, and direct connections to Ethernet-enabled Duets (Duet 2 Ethernet, Duet 2 Maestro, Duet 3 with Ethernet in stand-alone mode).
This is the standard setup, with the Duet 3 Mini 5+ WiFi (in standalone mode) or Duet 2 WiFi connecting to your network through a WiFi access point/router. This is covered in the Getting Connected guide. Briefly:
Note: the IP addresses in the following diagram are an example of how a network may be configured. Your network may use different IP addresses and ranges.
You can set up your Duet 3 Mini 5+ WiFi or Duet 2 WiFi as an access point, that your computer/tablet/phone can connect to directly. Ideally, your device should have two network connections, if you want to keep it connected to the Duet and your network/the internet, e.g. a desktop PC with wired Ethernet connection to network/internet and a WiFi connection to the Duet. Additionally, you should use an IP address range on the Duet that does not clash with your network; see illustration below.
To do this, use M589 and M552 as follows:
Note: the IP addresses in the following diagram are an example of how a network may be configured. Your network may use different IP addresses and ranges.
This is the standard setup for a Duet with a wired Ethernet port (Duet 3 in standalone mode, Duet 2 Ethernet and Maestro), and the set up is covered in the Getting Connected guide. The Duet is connected by a cable directly to the network router (though you could connect the Duet to a wired to wireless access point, and then connect that wirelessly to the router's WiFi). The Duet can have its IP address set by DHCP by the router, or set a static IP address in config.g.
Note: the IP addresses in the following diagram are an example of how a network may be configured. Your network may use different IP addresses and ranges.
If you are unable to directly cable the Duet to your network router, you can connect it directly to a computer with a spare Ethernet port. You will need to set up the Duet and your PC in their own point-to-point sub-network, as there's no router to do the network negotiation for them. If your PC normally connects over WiFi, you should still be able to access your network and the internet.
M552 P192.168.2.1 S1 ; IP address
M553 P255.255.255.0 ; Subnet mask
192.168.2.1
Note: the IP addresses in the following diagram are an example of how a network may be configured. Your network may use different IP addresses and ranges.
The connected Raspberry Pi (or similar) should already be set up for wired Ethernet access. See this guide for setting up a Duet 3 with connected SBC (Raspberry Pi or similar) on WiFi: SBC Setup for Duet 3.
If you have a display and input peripherals connected to your Raspberry Pi, you can use the same network configuration M-codes as above to configure LAN and/or WiFi. However, an index parameter (I
, e.g. M552 I0 S1
for interface #0) may be required to set up the correct network interface.
Once you have connected your Duet to your network, you will need to know its IP address to be able to connect to it. If you have set a static IP address, you can connect to this directly, and the address of the Duet will not change. However, some routers/network setups do not like this, and can remap the set IP address, or just not connect to it, forcing you to use DHCP, where the router sets the IP address for the Duet. This can make it difficult to connect, as you will need to look up the assigned IP address of your printer (either by connecting YAT/serial terminal to USB, using a network scanning app, or checking on a PanelDue if connected). To make connecting simpler, RepRapFirmware supports mDNS, also known as DNS-SD, zeroconf and Bonjour (longer article about this here).
The machine name you set in config.g can be used to allow local network discovery using mDNS. 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
mDNS is supported natively in Windows 10, most Ubuntu distributions, and Mac OS. For older versions of Windows, install Apple's Bonjour Print Services for Windows. If you have installed Skype, Apple’s iTunes or Adobe Photoshop CS3 or later, Bonjour will already have been installed.
Use of mDNS naming also relies on the firmware on the Duet:
The machine name is also used as the NetBIOS name, which can help to identify the Duet on a network. This is only supported on Duet 2 WiFi.
Note: Both the mDNS and NetBIOS name are limited to 15 characters. If you use a longer name, the mDNS name will be the first 15 characters, e.g. if the Duet name is "3DPrinterWithVeryLongName", you should still be able to connect to "3DPrinterWithVe.local".
If you still have trouble identifying your Duet on your network, Christian Hammacher's FindMyDuet Android app may help. (As of June 2022, this is currently unavailable on the Google Play store, and awaiting updating.)