TCP connections are identified by a server TCP address and port and a client TCP address and port. So, although every connection to a given port will have the server-side TCP address and port in common, they will have different client addresses and/or ports - making each connection unique. When two clients on the same machine connect to the same server, the OS on that machine will generate distinct TCP port numbers for each connection. It is possible for a client to request a specific TCP port to connect from using the bind() system call; however, if two clients request the same port, only the first request will succeed. The netstat command shows the four parts of a TCP connection: Here we have run netstat on the host where the server is listening on port 5432, and so the server address and port of the connection are shown as Local; the client has connected from a different host with IP address 195.169.109.24, and so this is shown as Foreign.
Explore Pico's platform
Move from background reading to the products that turn these techniques into measurable outcomes.
Analytics
Corvil Analytics
Nanosecond-precision network and application analytics for electronic trading.
ExploreTrading software
Data Solutions & Trading Software
High-performance market data and execution software for the trading lifecycle.
ExploreMarket services
Market Services
Global trading infrastructure, connectivity, and managed market data services.
Explore