Hi.
When using the C# UDPClient to receive data, how do I determine if the received datagram was a broadcast packet or not?
I can determine the source IP-address by reading the endpoint from UdpClient.Receive(endpoint), but I can't figure out how to get the remote IP-address of the packet. Is there a way to do that?
From stackoverflow
-
updClient.Client.RemoteEndPointwill be of typeIPEndPointthat has anIPProperty.
0 comments:
Post a Comment