Foro de elhacker.net

Programación => .NET (C#, VB.NET, ASP) => Mensaje iniciado por: matiasramos en 2 Diciembre 2012, 19:34 pm



Título: Obtener puerto
Publicado por: matiasramos en 2 Diciembre 2012, 19:34 pm
hola yo necesito obtener el puerto al cual le esta llegando los datos

             
Código:
Dim data2 As Byte() = client2.Receive(receivePoint2)
                If receivePoint2.Address.ToString() = "69.25.16.12" Then
                    client.Send(data2, data2.Length, "127.0.0.1", puertoquenecesitosaber)
                End If


no se como hacer, si me pueden ayudar gracias.