I am trying to set up a raspberry pi-powered print server based off of this guide.
So far I have installed CUPS, and am now on the step of creating a static IP address to make my pi discoverable.
I've entered sudo nano /etc/dhcpcd.conf
into the terminal, and followed this guide for detailed specifics on the rest of this step, but I have some conceptual questions related to a bug I am encountering.
The problem is, after setting static ip_address= (my computer's IPv4 address)
, routers= (my router IP)
, and domain_name_servers= (my DNSIP)
, pressing ctrl-x-y to save the changes, and then closing and reopening the terminal, I am unable to open the IP address in another browser.
In particular, the result of hostname -I
does not equal any field in the static IP address I just tried making. Plus, whenever I try opening any of the fields of this static IP in another browser like http://169.254.112.161:631
, my system just times out.
Though I am trying to fix my bug, I would like to understand what I am doing in following this tutorial.
In particular, what are the criteria for establishing a static ip address? I've tried using my computer's IPv4 address, as well as 192.168.0.99/24
given by the guide. One of these is correct, but which one is it, and why?
In response to a comment, the dhcpcd file is:
interface wlan0
static ip_address= 192.168.43.233/24
static routers=169.254.112.161
static domain_name_servers= 192.168.137.1
The router is a university one. I believe that this means that the internal address of the router is 169.254.112.161
as this is what I get from running ip r | grep default
and hostname -I
. I am not sure of how to figure out the range of the router.