I'm Migrating Windows Form Class Library to Metro App Class Library. In that there's a code-block which gives the IPAddress from the Host Name, below,
IPHostEntry ipHostInfo = Dns.GetHostEntry(Address);
IPAddress ipAddress = ipHostInfo.AddressList[0];// IPAddress.Parse(address);
IPEndPoint endPoint = new IPEndPoint(ipAddress, Port);
eg:
Address : talk.google.com
ipAddress : xx.xxx.xxx.xx
But I've seen that there is no IPHostEntry
or Dns
or IPAddress
in Metro App System.Net. .
If anybody knows means please tell me the replacement for these in windows 8 metro app.