Bind of Port

  • Thread starter Thread starter MuhammadNH
  • Start date Start date
M

MuhammadNH

Guest
Asalam Alaikum (Greetings)!

I am using ddns for getting IP like autoclone.ddns.net and it returns IP address of the host. My objective is to receive data from through UDP, because TCP is not working. It shows error unable to start server on ddns.net, where as it shows result on local IPs like 192.168.*.*. I search on the web and conclude that i need to make UDP listener, but it won't work. UDP listener is not working ddns. I might be doing something wrong, kindly help.

<CODE>

UdpClient udpClient = new UdpClient(4337);
udpClient.EnableBroadcast = true;

t = true;

while(t)
{
IPEndPoint hostIP = new IPEndPoint(IPAddress.Parse("196.194.70.192"), 4337);
byte[] bytes = udpClient.Receive(ref hostIP);
t = false;
}

</CODE>


Kindly help,


Regards,
Muhammad Naveed Haroon

Continue reading...
 

Similar threads

P
Replies
0
Views
183
Policy standard local admin account with Active Di
P
M
Replies
0
Views
69
MuhammadNH
M
Back
Top