You must connect to the printer with Putty (or similar)
- Find the printer’s IP address: Go to the printer's settings menu, select “About Machine”, and note down the IP address listed there.
- Open SSH Client: On your computer, open an SSH client (e.g., PuTTY for Windows).
- Connect to the printer: Enter the printer’s IP address in the SSH client and click open.
This will open another window where you will be asked to enter your printer login credentials, to access it.
The default login credentials for Elegoo Neptune 4 Pro are:
- Username: MKS (or use root for root access)
- Password: makerbase
Then you must edit dhcpcd.conf:
sudo nano /etc/dhcpcd.conf
If you haven’t edited the file previously, it will mainly contain various comment lines preceded by a hash (#) symbol. At the bottom, add the following lines, replacing the emboldened names with your own network details:
interface NETWORK
static ip_address=STATIC_IP/24
static routers=ROUTER_IP
static domain_name_servers=DNS_IP
Replace the emboldened names as follows:
- NETWORK – your network connection type: eth0 (Ethernet) or wlan0 (wireless).
- STATIC_IP – the static IP address you want to set for the Raspberry Pi.
- ROUTER_IP – the gateway IP address for your router on the local network.
- DNS_IP – the DNS IP address (typically the same as your router’s gateway address).
Here is an example configuration to set the static IP to 192.168.1.120 with a wireless connection to a router at 192.168.1.254:
interface wlan0
static ip_address=192.168.1.120/24
static routers=192.168.1.254
static domain_name_servers=192.168.1.254
Once you have entered the settings, press Ctrl + X and then Y and ENTER to close and save the modified configuration file.
Reboot the Raspberry Pi
With the dhcpcd.conf configuration file modified, restart your Raspberry Pi to effect the changes and set the static IP address for it:
sudo reboot
Rather than using an address assigned automatically by DHCP, the Raspberry Pi will now attempt to connect to the router using the new static IP address that you set in the dhcpcd.conf file.
To check that it is working correctly, enter the following command:
hostname -I