Source Port on TCPSocket

On TCPSocket you specify the Address and Port which is the destination address and port you wish to connect to. Is there a way of specifying the source port number or is that just up to the OS?

That is normally up to the system to give you a free number.