Firefox can’t establish a connection to the server at localhost:631

Take a look here for getting started with CUPS: CUPS - ArchWiki

Then enable and start cups.service or alternatively use socket activation to only start CUPS when a program wants to use the service.

systemctl enable --now cups.service
4 Likes