Fixed problems with specifying listening port for TransportLayer.