Hey ,
Im trying to do a broadcast using simple plain UDP. My server is started on localmachine with standard class C ip address (i.e. 192.168.1.X)
I’m getting :
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
Additional information: The requested address is not valid in its context
When I try to execute the folowing code :
SendReceiveOptions optionsToUseForUDPOutput = new SendReceiveOptions<NullSerializer>();
using (Packet sendPacket = new Packet("Unmanaged", Encoding.ASCII.GetBytes("pwd"), optionsToUseForUDPOutput))
{
UDPConnection.SendObject<byte[]>(sendPacket, new IPEndPoint(IPAddress.Broadcast, 48899), optionsToUseForUDPOutput, ApplicationLayerProtocolStatus.Disabled);
}