LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-19-2004, 02:27 AM   #1
overbored
Member
 
Registered: Jun 2003
Posts: 58

Rep: Reputation: 15
Can't Connect To 127.0.0.1


I just installed Debian with some servers, including apache and sshd. They seem to be working fine when accessed from other machines on my network, but I can't connect from the local server machine. lynx/ssh/ping 127.0.0.1 or localhost all fail. Just to be sure, I checked apache's access.log and error.log, and nothing from the local machine showed up. The connections clearly aren't being made.

What's going on? I really need to get this server working for the local machine. Thanks in advance for any help.

Edit:
I don't know if it makes any difference, but I run dhclient every time I boot. For some reason, Debian doesn't automatically do the DHCP stuff with my Linksys router when it boots, so that's the only way I know of getting connected. If anybody knows about my original problem and/or this one, I would greatly appreciate help on either!

Last edited by overbored; 04-19-2004 at 02:42 AM.
 
Old 04-19-2004, 02:37 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Probably your loopback interface is not up, try running
Code:
ifconfig lo up 127.0.0.1
 
Old 04-19-2004, 02:46 AM   #3
overbored
Member
 
Registered: Jun 2003
Posts: 58

Original Poster
Rep: Reputation: 15
Edit:
Hey, that worked, thanks! Just out of curiosity. Why doesn't it work to start with?

So I guess there's still this question, and why I need to run dhclient.

Last edited by overbored; 04-19-2004 at 02:49 AM.
 
Old 04-19-2004, 03:48 AM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
For permanent solution, to have loopback interface up and eth0 scanned by dhcp, there should be lines
Code:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
in /etc/network/interfaces

Now running '/etc/init.d/networking start' should do the necessary magic. (it is automaticly run at boot).
 
Old 04-19-2004, 03:50 AM   #5
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
See man interfaces for doing some more tricks. There are also some user-interfaces for doing that file automatically (like etherconf).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2003: Can't connect to MySQL server on '127.0.0.1' (111) eantoranz Ubuntu 4 09-06-2005 02:47 PM
DSN: Data format error & relay=[127.0.0.1] [127.0.0.1] calmbomb Linux - Software 0 11-07-2004 03:24 PM
Card seen, but 127.0.0.1 ssrl78 Linux - Networking 4 05-29-2004 08:49 AM
error 127 ccflashback Linux - Newbie 1 11-18-2003 11:26 AM
telnet:connect to address 127.0.0.1: connection refused sdeven Linux - Networking 6 12-23-2002 12:38 AM


All times are GMT -5. The time now is 07:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration