Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Login to participate.

Go Back   TechSpot OpenBoards > OS & Software > The Alternative OS

Cannot connect to localhost

Reply
 
Thread Tools
  #1  
Old 01-25-2008, 09:13 AM
Mamut0o1 Mamut0o1 is offline
Newcomer, in training
 
Member since: Jul 2007, 16 posts
Cannot connect to localhost

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
Reply With Quote
  #2  
Old 01-25-2008, 09:58 AM
Nodsu's Avatar
Nodsu Nodsu is offline
TS Special Forces
 
Location: Estonia
Member since: Feb 2002, 9,432 posts
System specs
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.
Reply With Quote
You can remove this banner by registering, join the TS Community for free.
  #3  
Old 01-25-2008, 01:00 PM
jobeard's Avatar
jobeard jobeard is offline
TechSpot Evangelist
 
Location: Southern Calif.
Member since: Apr 2005, 6,126 posts
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

Last edited by jobeard; 02-18-2008 at 08:46 PM.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Network Connection will only connect to Internet if Lcl Area Connect disable Steve Yancey Storage & Networking 1 04-07-2007 03:14 PM
Wireless, can't connect to router but can connect to intranet? nwilliams Storage & Networking 7 01-24-2006 04:49 PM
IIS/localhost problems maddHyena Storage & Networking 0 11-09-2005 08:50 PM
Can connect to internet, but can't connect to AOL. testdrug Storage & Networking 1 08-01-2005 07:41 AM
Which lead do i use to connect pc to pc? & which lead to connect pc to modem? cragwin Storage & Networking 6 05-17-2005 08:11 PM


All times are GMT -4. The time now is 06:42 PM.