Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Mulitiple Tomcats - Multiple IPs

Thread view: 
robert.szczepanek@gmail.com - 22 Aug 2006 10:34 GMT
Hello.
I have a server and 4 IP addressess 10.10.10.10, 10.10.10.11,
10.10.10.12, 10.10.10.13
Can i run 4 tomcats on port 80 on 4 different IP addressess?

Thnak You

Robert
William Brogden - 22 Aug 2006 21:17 GMT
> Hello.
> I have a server and 4 IP addressess 10.10.10.10, 10.10.10.11,
[quoted text clipped - 4 lines]
>
> Robert

Assuming you mean on the same machine, of course not - only one
listener on port 80 at a time.

However, you can host multiple domains on one Tomcat instance
by configuring <Host entries in the server.xml file - perhaps
that will do what you want.

Bill
Arne Vajhøj - 22 Aug 2006 23:58 GMT
>> I have a server and 4 IP addressess 10.10.10.10, 10.10.10.11,
>> 10.10.10.12, 10.10.10.13
>> Can i run 4 tomcats on port 80 on 4 different IP addressess?

> Assuming you mean on the same machine, of course not - only one
> listener on port 80 at a time.

With different IP addresses ofcourse he can.

Arne
William Brogden - 23 Aug 2006 17:24 GMT
>>> I have a server and 4 IP addressess 10.10.10.10, 10.10.10.11,
>>> 10.10.10.12, 10.10.10.13
[quoted text clipped - 4 lines]
>
> With different IP addresses ofcourse he can.

OK - how can you have 4 instances of Tomcat on one machine
all listening to the same port?

Every time I try to start Tomcat with another instance already running
I get an immediate error.

Bill
Arne Vajhøj - 24 Aug 2006 02:00 GMT
>>> Assuming you mean on the same machine, of course not - only one
>>> listener on port 80 at a time.
[quoted text clipped - 6 lines]
> Every time I try to start Tomcat with another instance already running
> I get an immediate error.

4 different IP addresses.

4 Tomcat instances.

Each Tomcat instance server.xml specify it to listen
at one specific IP adress port 80.

If you do not specific IP address then it default
listen on all IP addresses.

Arne
William Brogden - 24 Aug 2006 15:18 GMT
>>>> Assuming you mean on the same machine, of course not - only one
>>>> listener on port 80 at a time.
[quoted text clipped - 16 lines]
>
> Arne

My problem was I thought the in-line documentation in server.xml
explained all the options for a Connector configuration. Turns out
they left out the use of the "address" attribute. I should have
been looking at this page:

http://tomcat.apache.org/tomcat-5.0-doc/config/http.html

Bill
Arne Vajhøj - 22 Aug 2006 23:57 GMT
> I have a server and 4 IP addressess 10.10.10.10, 10.10.10.11,
> 10.10.10.12, 10.10.10.13
> Can i run 4 tomcats on port 80 on 4 different IP addressess?

Yes.

You will need to specify the address attribute for every connector,
so that they only listen on one IP adresss (default is all).

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.