I know that it is not easy to bind a port number to TCP socket that you would use to send data (because systems usually bi
Actually it is quite easy. Simply use the bind function as you would for a server.