I need to get an IP address for a given hostname from a DnsEndPoint, and convert it to an IPEndPoint. How would I go about doing this? WP7 lacks a Dns.GetHostEntry function, so is there any way to do this without creating a Socket, sending data to the host, then receiving a ping from the host and reading the RemoteEndPoint property to get the IP address of the host?
Share
Try using
DeviceNetworkInformation.ResolveHostNameAsyncin theMicrosoft.Phone.Net.NetworkInformationnamespace, like this: