In this post I’ll try to share my thoughts and experience developing applications for the Windows Phone Marketplace. I’ll share with you why I think it’s a great platform for an indie or pro developer, and I’ll also try tell you what did work in this last years, what didn’t, and a couple of hints that...
Finding the external IP Address of your machine, with a timeout, in C#
If you try to find the IP Address your machine is using, you can follow two paths. The most obvious one is:
string host = System.Net.Dns.GetHostName();
System.Net.IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(host);
System.Net.IPAddress[] addr = ipEntry.AddressList;
for (int i = 0; i < addr.Length; i++)
{
if (addr[i].AddressFamily != System.Net.Sockets.AddressFamily.InterNetwork)
...
Suscribirse a:
Entradas (Atom)