Static IP on PI
Updated: Nov 15, 2018
Hi, here you'll learn how you can set a static IP address on your PI.
This is useful as you'll always know your PI's address as otherwise it can change over time.
This is necessary if you are going to be connecting to your PI from outside your network.
1. Download and install Putty
2. Connect and login to your PI if you don't know how follow link https://www.fission3d.com/single-post/2017/09/25/Configuring-Putty
3. Enter the following code (Copy code directly, to paste into putty just right click)
4. sudo nano /etc/dhcpcd.conf (if you get a command not found error enter sudo nano /etc/network/interfaces then press Ctrl + X and Enter and now try the sudo nano /etc/dhcpcd.conf again)
5. On newer versions you might be asked for a password again please enter
6. scroll down using the arrow key on your keyboard and locate the paragraph
# A list of options to request from the DHCP server. option domain_name_servers, domain_name, domain_search, host_name option classless_static_routes 6. just below the above paragraph enter
6.a if connected by ethernet enter below
interface eth0 static ip_address=192.168.XX.XX static routers=192.168.XX.XX static domain_name_servers=192.168.XX.XX
6.b if connected by wireless enter below
interface wlan0 static ip_address=192.168.XX.XX static routers=192.168.XX.XX static domain_name_servers=192.168.XX.XX
7. replace the XX above with your specifics if you do not know what to do then read this small guide on networking to determine your IP pool and what address to choose. Do not use the Num-pad, if you do press Ctrl + C to cancel
8. press Ctrl + O to save
9. press enter to confirm
10. press Ctrl + X to close editor
11. sudo reboot
12. wait for PI to reboot and try to connect with your new IP if all went well you should be greeted by Octopi :)
If you like this guide and would like to support so I can make more please consider donating ;)
If you think any part of this guide is wrong please send us a shout at email@example.com