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

I have a TeamCity Install running on a Windows Machine which works on http://localhost:9999 I want to make my TeamCity web server available to external developers for a specific host entry. i.e. how do I do this?

I have never worked with Tomcat before, so the more details the better.


share|improve this question
up vote 1 down vote accepted

If your TeamCity server is Internet facing all you need to do is make sure that you have a DNS entry for that resolves to the public IP address of your server.

If your TeamCity server is behind a gateway device (firewall, router, etc) you'll still need to create the aforementioned DNS entry, but you'll want it to resolve to the public IP of your gateway device. Then you set up a rule on your gateway to forward requests to your TeamCity server.

Another thought would be to set up a reverse proxy that you could use to rewrite the URL to add the port.

share|improve this answer
actually this only gets me halfway. How do I route to Tomcat on port 9999? Can I do this without creating a DNS entry on my DNS server? – Adam Apr 19 '11 at 19:53
@Adam Ah, I see. Well, if your server is internet facing the you don't. You need to include the port number in the URL for your external devs. If your server is internal then it might be possible to to a port redirect on your gateway device but that depends on what your device supports. They don't all support port redirections. A DNS entry is required in any situation. Without it your external devs won't be able to resolve – squillman Apr 19 '11 at 19:56
@Adam I just added an edit with another thought about how you might be able to do the port redirect. – squillman Apr 19 '11 at 20:23
Since its a windows box I just created a HTTP Redirect from my to Thanks. – Adam Apr 20 '11 at 19:47
@Adam Excellent, thanks for the follow-up. That's essentially the same thing. IIS is acting as a reverse proxy. – squillman Apr 20 '11 at 19:51

Your Answer


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.