I recently installed balenaOS on my Raspberry Pi 3 with CUPS and PiHole.
The CUPS interface is accessible at my local IP (192.168.2.103) with Port 8080.
The PiHole interface also works, but is only accessible from the public device URL.
I cannot access my Pi from its local IP.
I never touched the interface, only changed the password with pihole -a -p.
How can I access the interface? Because I really don’t want a Public URL.
Hi,
the public device URL reads HTTP input from the device’s port 80, could you please check whether you are able to access that one? Are there any other ports that you need to access (as I understand PiHole provides more) and are they exposed in your docker-compose?
As mentioned, the Public Device URL will tunnel to the device on port 80. I can only assume that something has caused the port to be bound to an interface which isn’t the LAN. Have you mixed the compose file to have CUPS and PiHole together? If so, could you share the compose file here so we can take a look.
Firstly, when using the host network mode, the ports definition isn’t active. So either drop the host network from CUPS or map the port correctly.
Your PiHole is also using the host network, so you probably have some conflict there on port 80 due to the way your CUPS is being defined. I would start there and sort out the compose first, then see what the situation is.
I would advise you to read up on how networking in Docker works. I would suggest putting the CUPS service into the bridge and mapping the port you need to host.