Cant access pi-hole admin panel

Expected Behaviour:

Should be able to access admin panel

Actual Behaviour:

I cant access the admin panel on any other device including the host pc for the pi-hole VM. I check on the actual vm using curl -i http://192.168.1.24/admin and it came out with a bunch of html code

Debug Token:

jrjpkrn12q

HTML would show that it's working. The debug token you provided is invalid so we can't be sure.

new token ek6ssbweee

That shows everything working as it should.

*** [ DIAGNOSING ]: Dashboard and block page
[✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
[✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!

Maybe its how im doing it router wise? i set this up

but im not sure if its using this?? Im not too good with routers and stuff

I have it as
IP address: 192.168.1.24/24
Gateway: 10.0.2.2

and this is what i get when i try and connect

192.168.1.24/24 is a different network than 10.0.0.0/16. If you want to have the networks segregated like that then you'll need a router or something at the gateway to handle moving packets between the two networks.

How should i have my DNS then if i want to keep the ip?

Easiest would be to have the DNS IP in the same network subnet as the clients.

Alright i changed my stuff to
IP address: 192.168.1.24/24
Gateway: 192.168.1.1
and its definitely working on my devices, but I still cant access the admin panel, any ideas on why? It keeps saying ERR_ADDRESS_UNREACHABLE for http://192.168.1.24/admin and image for http://pi-hole/admin

Alright just got the admin page to work, but now when i try and connect to dns 192.168.1.1, it says in query log that nothing is there expect for localhost.

That's not the correct URL.

The default URL to use would be http://pi.hole, but from your posts, it would seem that you'd have to figure out how to correctly integrating the VM you are running Pi-hole on (whatever that may be) into your network.

That would be specific to your VM and host OS, rather than Pi-hole.

2 Likes

Thank you, solved. This can be closed

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.