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?


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;


  • 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

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


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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.