'Spring boot Embedded Tomcat does not establish multiple connections from the same src IP

I have spring boot application 2.5.8 that uses embedded Tomcat. This server listens to port 8081.

When a client establishes TCP connection with my server, it works ok.

But when client is trying simultaniously to setablish 2 connections from different ports - one connection is established. But the second connection is not established. In wireshark I see the next:

enter image description here

Connection from port 56542 is established, but connection from port 64005 is never established.

What could be a reason? How to solve this issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source