Each network connection is described by tuple of 4 values:
- Source Address
- Source Port
- Target Address
- Target Port
So only if these 4 values match, we cannot open new connection. This should make it clear how we can have 2M (or more) simultaneous connections to single service listening on single port.