HTTP port used by Pi-hole v6?

What's the port number of the admin interface now lighttpd has been removed?

The default ports are 80 for HTTP (hasn't changed) and 443 for HTTPS (newly added with v6).

If port 80 is detected as already taken during installation or upgrade, port 8080 will be tried instead.

You can check your current configuration, e.g. by running

sudo pihole-FTL --config webserver.port

Ta. I was editing the lighttpd config to use 8017 because something else was previously using port 80.

If I want to run a webserver again in the future, how do I change the admin interface's port?

Via Pi-hole's UI, as accessible via Settings | All settings » Webserver and API , or via the corresponding FTLCONF_webserver_port environment variable for a Docker container, or via API calls, or by editing pihole.toml, or via CLI, e.g.

sudo pihole-FTL --config webserver.port "80,443os,[::]:80,[::]:443os"

Just as mentioned in our Introducing Pi-hole v6 announcement. :wink:

1 Like

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