, . IP- dns No-ip.
, , System.Net.Dns Windows Phone.
, .
http://msdn.microsoft.com/en-us/library/system.net.dns.aspx
At the beginning of my application, I am going to create a web service call to a host (to the web server in it) requesting IPAddress. I think I will solve the problem in the meantime.
It could be a WCF service
[ServiceContract]
public interface IService1
{
[OperationContract]
string GetIpAddress(string value);
}
public class Service1 : IService1
{
public string GetIpAddress()
{
IPAddress s = Dns.GetHostAddresses("www.mysite.com")[0];
return s.ToString();
}
}
If you guys find a direct approach, please let me know.
source
share