I think I'm correct in saying that:
- OSes generally use the IANA ephemeral port range of 49152 to 65535.
- Apps generate a random ephemeral port to establish a connection from the client to the server.
- NAT translates IP addresses, usually private-public.
So, how do ephemeral ports work with NAT?
As far as my understanding goes (I'm sure that I'm missing something), shouldn't there be a possibility (higher on larger networks) that ephemeral ports could conflict in the network or on the server if, for example, two or more clients happen to generate and use the same random ephemeral port to connect via NAT?