C# UDP server sending and client receiving
UDP Server private void ServerBroadcastThread() { int GroupPort = 15000; UdpClient udp = new UdpClient(); udp.EnableBroadcast = true; IPEndPoint groupEP = new IPEndPoint(IPAddress.Broadcast, GroupPort); string str4; byte[] sendBytes4; while (true) { str4 = “Is anyone out there?”; sendBytes4 = Encoding.Default.GetBytes(str4); udp.Send(sendBytes4, sendBytes4.Length, groupEP); Thread.Sleep(10000); } } UDP Client private void ClientBroadcastThread() { UdpClient receivingUdpClient = […]