Cannot connect to localhost

By Mamut0o1
Jan 25, 2008
  1. Hello, I recently change my ip from dhcp to static but I just noticed that when I try http://localhost:901 or http://localhost:631 I get a "cannot connet to localhost" error. This used to work for me so I think I messed up by mistake a loopback setting or a service not running??? has anyone had this problem before?

  2. Nodsu

    Nodsu TS Rookie Posts: 5,837

    I assume you are running some sort of a Linux here..

    First, check your /etc/hosts file and see what it says about localhost. You should have an entry saying that is the same as localhost.
    Second, run "netstat -tlnp" to get a list of processes listening for network connections. You should have cupsd listening on for example.
  3. jobeard

    jobeard TS Ambassador Posts: 8,945   +584

    Actually http://localhost/ works on Windows too, assuming the service is
    properly configured to listen on *:80, or in your case *:901

    Verify your config for the service
Topic Status:
Not open for further replies.

Similar Topics

Create an account or login to comment

You need to be a member in order to leave a comment
TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...

Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.