Two quick questions.

Question 1:

When tomcat creates a TCP connection to a remote server (for example, a 
back-end database) tomcat is acting as the TCP client in that case. Does it use 
the IP it is listening on as the source IP for its outbound client connection?

For example, Server1 has three IPs: 10.0.0.1 (primary), and two additional IPs, 
10.0.0.2 and 10.0.0.3. Tomcat is listening on 10.0.0.2. It receives a request 
that requires it to connect to a database server. When it creates a TCP 
connection the database server, which IP does it use as the source address?

Question 2:

Suppose you have two instances of tomcat on the same server. TomcatA is 
listening on 10.0.0.2 and TomcatB on 10.0.0.3. First, TomcatA establishes a 
connection to a remote server from its source IP 10.0.0.2, source port 3456. 
Can TomcatB, which is listening on a different IP, also establish a connection 
to the remote database server using the same source port 3456, given that the 
sockets is unique (different source IP)?

-Eric






Disclaimer : This email and any files transmitted with it are confidential and 
intended solely for intended recipients. If you are not the named addressee you 
should not disseminate, distribute, copy or alter this email. Any views or 
opinions presented in this email are solely those of the author and might not 
represent those of Physician Select Management. Warning: Although Physician 
Select Management has taken reasonable precautions to ensure no viruses are 
present in this email, the company cannot accept responsibility for any loss or 
damage arising from the use of this email or attachments.

Reply via email to