vb.net udp接收失败
udp接收的时候报错
Sub listen()
Dim ip As System.Net.IPAddress = System.Net.IPAddress.Parse("192.168.20.255")
Dim port As Integer = 5689
Dim ipep As New System.Net.IPEndPoint(ip, port)
Dim myudp As New System.Net.Sockets.UdpClient
Dim bytes As Byte()
Try
bytes = myudp.Receive(ipep)'在这里报错,’提供了一个无效的参数‘
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
请指教~~!