Well, I was here for a while, I found the answer to my question, here it is:
void SendCamData() { SendCamSearch(); ReceiveCams(); } void SendCamSearch() { udpC = new UdpClient(); try { udpC.Send(MessForCamsByte, MessForCamsByte.Length, CamsIpEndPoint); } catch (Exception e) { Console.WriteLine("Blad wysylanie search cam - " + e.ToString()); } } void ReceiveCams() { if (udpC != null) { listener = new Thread(UdpReceiveThread); listener.IsBackground = true; listener.Start(); listener.Join(2000); SendCamIpAndPort(CamsValsBuilder.ToString()); } }
and best of all was this message
string MessForCams = "4d4f5f490000000000000000000000040000000000000000000001";
source share