PiHole running in Docker error: There was a problem applying your settings. Debugging information: PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47

Please follow the below template, it will help us to help you!

Running Pihole

The error: There was a problem applying your settings.
Debugging information:
PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47
-operating system, Armbian [bookworm]
-hardware]_Odroid N2

Actual Behaviour:

Pihole in docker is up and running.Only cannot set dns or something, see the error text.

Debug Token:

_[Replace this text with the debug token provided from running pihole -d (or running the debug script through the web interface]_

Use pihole for years, only now first time in docker.. so hope some help.My ip range 192.168.5.xxx My router 192.168.5.1 So i hope someone can give me the good setup.

The PHP error above is just a symptom of FTL not running.

The real issue is there is something else using port 53 and FTL can't start:

[2024-06-02 15:03:47.668 12258M] FATAL ERROR in dnsmasq core: failed to create listening socket for port 53: Address already in use
[2024-06-02 15:03:47.693 12258M] ########## FTL terminated after 60ms  (code 1)! ##########

You need to disable (or move to a different port) whatever is currently using port 53 on your host.

Thanks..
Aonly i read when in use the host, there should be no port set.
Do you have a example docker compose?
Or how can ik give the docker a port [ all port allawed? ]

How can i see what ports are free?
Sorry windows noob here

The example here should work: GitHub - pi-hole/docker-pi-hole: Pi-hole in a docker container

Do not use a different port for DNS. Devices will always try to access DNS on port 53.

In the console, on your docker host (Armbian), use this command to find out what is using port 53:

sudo ss -tulnp "( sport = 53 )"

Thanks That is running now...
only now i do not have working clients in pihole:


Set my router in to pihole adress:

And in Pihole also the network:

In docker a lot of things are different

Or do i need to use a docler ip adress:

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