I&#039;m using a socket connection in .net:<BR><BR>var ioiSocket : Socket = new Socket(AddressFamily.InterNetwork,SocketType.Strea m,ProtocolType.Tcp);<BR>var ioiIPAddress = IPAddress.Parse(Application("ipAddress"));<BR>var ioiPort : int = Application("port");<BR>var ioiIpEndPoint = new IPEndPoint(ioiIPAddress, ioiPort);<BR>ioiSocket.Connect(ioiIpEndPoint);<BR> var Sent = ioiSocket.Send(msg);<BR>Received = ioiSocket.Receive(AvailReply);<BR>ioiSocket.Close( );<BR><BR>Is there a way to specify the source port. The code above only uses the destination port and randomly chooses the source port. I need to encrypt the traffic but .net uses a random port from the source machine.<BR>Any ideas would be great.<BR>Thanks,<BR>