Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

(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 stackoverflow.com Dec 23 '09 at 19:58

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

1  
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
add comment

1 Answer

It depends on what exactly webserver you use. It looks like it listens for incoming connections on interface 127.0.0.1 (localhost). You need to configure it to listen on interface 0.0.0.0 (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
add comment

Your Answer

 
discard

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