Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



Cannot connect to localhost

Mamut0o1
01-25-2008, 10:13 AM
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?

thanks

Nodsu
01-25-2008, 10:58 AM
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 127.0.0.1 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 0.0.0.0/0:631 for example.

Ad
01-25-2008, 10:58 AM
  

jobeard
01-25-2008, 02:00 PM
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
eg:
Listen 0.0.0.0:80
Listen 0.0.0.0:901

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Weekend tech reading: How to run Chrome OS as a virtual machine

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.