RE: Re-Use TCP Source Ports if the Socket is Unique?

2021-06-24 Thread Eric Robinson
Thanks for the feedback, Daniel. I guess the answer depends on whether the socket libraries use the tomcat listening port as the source IP. If you have three tomcat instances listening on three different IPs, each instance should be able to open a client connection using the same source port, a

Re: Re-Use TCP Source Ports if the Socket is Unique?

2021-06-24 Thread Daniel Baktiar
Hi Eric, It should behave the same way. The socket client application will be assigned an ephemeral port. On Fri, Jun 25, 2021 at 9:14 AM Eric Robinson wrote: > I guess I may have answered this question for myself. At least I can > simulate it with ncat. Note that I have two ncat sessions open

RE: Re-Use TCP Source Ports if the Socket is Unique?

2021-06-24 Thread Eric Robinson
I guess I may have answered this question for myself. At least I can simulate it with ncat. Note that I have two ncat sessions open to the same remote server using the same source port, but with different source IPs. [root@testserver ~]# netstat -antp|grep ncat tcp0 0 192.168.11.215

Re-Use TCP Source Ports if the Socket is Unique?

2021-06-24 Thread Eric Robinson
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