You are not logged in.

#1 2007-08-08 17:14:35

cytzol
Member
Registered: 2007-06-27
Posts: 10

I can't talk to localhost

My own computer can't talk to itself. I can't use ping, nmap, or talk to any server on my own computer. However, I can access it from another computer on the same network perfectly, no restrictions, it works fine.

It's like this with all servers, so I doubt it's a single application configuration issue. I can connect to httpd from other computers on the same network, but connecting to localhost in firefox fails. I even wrote a simple echo server in Ruby and the same thing happened - works fine from the network, but fails on my own computer.

my /etc/hosts is just

127.0.0.1               localhost.localdomain   localhost lapsertop

my /etc/hosts.deny is empty, save some comments.

my /etc/rc.conf has under networking

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0 wlan0)
ROUTES=(gateway)
gateway="default gw 192.168.0.1"

Have I set something up incorrectly, or is Arch taking DRM to a twisted new level?

Offline

#2 2007-08-08 17:55:26

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: I can't talk to localhost

I do not think it is Arch. I have built many arch boxes and never had a problem with that.
If you are trying to access the loopback from your browser try "http://localhost" if you have apache running in the machine it should take you to the default Apache page.

I wonder if you have some misconfiguration on your firewall (if you are running one) or a bad setting in Apache that is causing the problem.

R

Offline

#3 2007-08-08 18:11:49

cytzol
Member
Registered: 2007-06-27
Posts: 10

Re: I can't talk to localhost

I do not think it is Apache, as all other servers on the machine act the same way Apache does (brokenly).

Browsing to http://localhost just does nothing then eventually times out. But browsing to http://192.168.2.6 from another computer on my local network gives me the default Apache page.

Offline

#4 2007-08-08 21:23:50

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: I can't talk to localhost

Going to the machine's local address also goes to the  right place for me as does going to 127.0.0.1 and localhost... and that's my point: something is mis configured in your system.
You seem to have wireless running in that system ... I wonder if something on that end is creating the problem.

Try disabling wlan0 and see if the problem is corrected, if it does you know where to start looking for the problem.

Hope this helps.

R.

Offline

#5 2007-08-08 22:10:01

elgatofelix
Member
From: Chile
Registered: 2007-07-03
Posts: 137

Re: I can't talk to localhost

And if u append

127.0.0.1               lapsertop

to your /etc/hosts


Are u listening?

Offline

#6 2007-08-08 22:10:30

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: I can't talk to localhost

cytzol wrote:

ROUTES=(gateway)
gateway="default gw 192.168.0.1"

The gateway setting could be the cause of your problems.
You mention your pc gets ip-address 192.168.2.6 , yet your gateway is set to 192.168.0.1 , a different subnet.
Normally with dhcp the gateway is set automatically, try routes=(!gateway)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB