Would it be a waste of time If I summited it to ideascale? I suppose it wouldn’t be trivial to add a configurable block of ports you could use for connections like this. From the server side.
The ephemeral port is chosen by the operating system, not by an application. Some operating systems allow you to constrain the range, but I’ve only seen it for global effect on all TCP traffic.
Note that both ends normally end up on an ephemeral port–the “23” is used just for the first packet in typical applications.
Tools like wireshark will remember what port was used to open a connection and will keep the connection’s packets together. As long as it sees that first packet.