On 2025-08-10, Grant Edwards <[email protected]> wrote: > I need to be able to run servers that are required to bind to > specific, well-known, reserved ports that are within the Linux > ephemeral port range. If some client connection happens to be using > one of those reserved ports, then the server will be unable to run. > > At least that's what my googling and reading have led me to > believe. Is that wrong? > > Can a server bind to a and listen on a local port that is already > in-use as the source port for a TCP connection? > > I guess I should test it...
My tests appear to confirm that you can not bind to a port that is already in use as the local source port for an established connection.

