Take the 2-minute tour ×

I have a problem that I cannot access a web page when using eth0 interface. If I use loopback interface everything works fine.

wget http: // - works ok wget http: // - connection refused.

I'm doing this on the same machine.

Any ideas what might be the problem?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

First you should check the Listen directive in your server configuration

   Listen 8080

should listen on all interfaces, port 8080.

In doubt you can specify several times the same directives


and restart the server.

If your firewall drops the packets, you wouldn't have connection refused, so I think it is more a web server configuration problem.

If you are using nginx and not apache, check your server section(s) and the same remark applies

  listen 8080;


share|improve this answer
This most likely is the problem.... But I still have to figure out how to make a service listen on some other interface. I need to make Oracle 10g XE listen on that interface. –  markovuksanovic Dec 9 '10 at 17:23
add comment

First check if your webserver is listening on eth0 and not just lo

$ netstat -ntlp

If that is okay then do a telnet on port 8080 to see if the port is open.

$ telnet 8080

If the telnet doesn't work check your firewall rules.

$ iptables -L -n

share|improve this answer
add comment

It could be that you have a


in your /etc/apache2/ports.conf?

Or a


under your sites configuration (usually /etc/apache2/sites-available/default or analogue)

share|improve this answer
add comment

Your Answer


