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

If I want to access Tomcat directly from a remote host, i.e. not through Apache, should I configure the connector to use localhost or the external IP/hostname? What if it's on a Windows server and I want to access it both remotely and from the desktop or from two different external IPs - do I need multiple connectors and multiple directories under conf/Catalina/ or can I somehow connect two hosts to the same directory?

share|improve this question

You should use the external host name for the connector.

As long as the server is accessible from the all networks you're using with the external IP, you're good to go - no extra configuration.

If you do need multiple host names/IPs, you can do what the tomcat documentation suggests:

<Host name="" ...>
share|improve this answer
Robert, you helped me saved a lot of space in my server.xml files, I was duplicating the host entries for each url alias. thanks again! – Geo Jun 24 '09 at 22:09

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.