Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

(pardon my ignorance, I am not familiar enough with http to understand the background of this. I'd be grateful if you could enlighten me).

I have a webserver that runs on http://localhost:8080. However, it doesn't work when I type my machine name (I am on a machine with a DNS name behind a firewall). Even on my own machine, if i write "machinename:8080" it fails, but going to "localhost:8080" works.

Why is this? Is there a way to force my way into enabling "machinename:some_other_port" to just serve whatever localhost:8080 serves?

Thanks a lot

share|improve this question

migrated from Dec 23 '09 at 19:58

This question came from our site for professional and enthusiast programmers.

what webserver? – Agent_9191 Dec 23 '09 at 19:57
If you type the IP address of your localhost, what does it do? ie, http:\\YourIPAddress:8080 – Josh Brower Dec 23 '09 at 20:53
If you could provide the application/server/host machine information we would probably be able to help you better. :) – TrueDuality Dec 23 '09 at 20:58

It depends on what exactly webserver you use. It looks like it listens for incoming connections on interface (localhost). You need to configure it to listen on interface (which means all interfaces - all IP numbers assigned to this computer). How to configure it depends on the webserver.

share|improve this answer
It could also be a hostname based virtualhost, meaning that it is only listening specifically for 'localhost', even on all bindings – Mark Henderson Dec 23 '09 at 21:17
Or it could be just a DNS issue... – Josh Brower Dec 23 '09 at 21:30
Or a firewalling problem... – Maxwell Dec 23 '09 at 22:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.