السلام عليكم
شباب الفزعه الفزعه
عندي مشكله مش عارف احلها
ساعدوني
المشكله انه في عندي جهاز اسمه TIME MATE واله ip رقمه 192.168.110.254 طيب
المهم
بحاول اسمع لل ip بس المصيبه مش راضي يشتغل وبعطيني الايرور التالي
The requested address is not valid in its context
جربت بألف طريقه بس ع الفاضي
هي كودي
byte [] buff1 = new byte [2500];
//recieve the command from the TimeMateIII
IPAddress ip = IPAddress.Parse("192.168.110.154");
IPEndPoint ipep = new IPEndPoint(ip, 11240);
Socket lsn = new Socket(
ipep.Address.AddressFamily,
System.Net.Sockets.SocketType.Dgram,
System.Net.Sockets.ProtocolType.Udp );
lsn.Bind( ipep );
ارجوكم المساعده