Today I was unable to print on the network printers, so I tried to look at their configuration through http://localhost:631, as explained in the wiki (that's how I configured them last week), and I got the following error message: "could not connect to host localhost (port 631)".
I have looked at the /etc.hosts file, and it looks unchanged:
127.0.0.1 localhost.localdomain localhost
Where can this error come from ?
Is cups running? Port 631 won't be available if cups is not active.
check if you network loopback device is up and configured properly. it should obviously look like something this:
[kth5@maetrik ~]$ ifconfig lo lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:185 errors:0 dropped:0 overruns:0 frame:0 TX packets:185 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9852 (9.6 Kb) TX bytes:9852 (9.6 Kb)
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
My bet is you didn't add cups to your DAEMONS array in /etc/rc.conf. When you rebooted, cups wasn't restarted, so nothing is listening on port 631.