Listening on an ephemeral TCP port

The classic TCP client/server interaction &#xA; When a TCP client calls connect (2) , it usually gets assigned a port number from the ephemeral port range which is not used yet. &#xA; The server, on the other hand, usually calls bind (2) &#xA;to set the port that it will listen on. &#xA; &#xA; &#xA; &#xA; Server &#xA; &#xA; &#xA; &#xA; socket() &#xA; &#xA; &#xA; &#xA; bind() &#xA; &#xA; &#xA;…