Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I set up a web server (for media wiki, specifically) on a computer with a few other functional web sites. I chose port 9191. It works correctly from localhost:9191.

When I attempt to view the site from another computer, it redirects me to localhost and cant find it, as if I'm trying to connect to a computer that doesn't exist.

Any ideas? Any other error codes I can look for?

I'm using Win-2008-R2/IIS.

share|improve this question
1  
Unless you have done so already, you need to configure your router or gateway to redirect the right port through. If you already did that, we need more info. –  Itai Jul 16 '13 at 3:26

1 Answer 1

If you're being redirected to "localhost", that means you might not be using the private network IP address and port number of the host computer (e.g., 192.168.1.1:9191) if on the same network, or its public IP address and port if on a different network (e.g., 74.125.225.101:9191).

Another possibility is that you have JavaScript, VBScript, meta refresh, or another redirect in the default page that's redirecting to "localhost" instead of the IP address of the host computer. Sometimes developers will have web servers running on their development/test computers, so make sure there isn't an IIS or Apache service running on them too.

On Windows it's also important to make sure that there's an exception in Windows firewall for IIS for port 9191, as well as unblocking port 9191 in any other firewall or router between you and the host computer (though you wouldn't even get the localhost page if these were the case, unless you were viewing browser cache somehow).

Lastly, since you're able to reach the content on the same computer, you likely already changed the port of IIS to serve your site on port 9191. If not, here's how: Microsoft Support - How to change the TCP port for IIS services.

share|improve this answer
    
@glutz Was my answer helpful? –  dan Jul 24 '13 at 3:45

Your Answer

 
discard

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

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