Can i use Dns.GetHostEntry("www.test.com") in WP8?

How do i get the server form the host(like:www.test.com)?

IPEndPoint ipe = new IPEndPoint(Dns.GetHostEntry("www.myhost.com",8767)); // this code can't work in wp8!!!

what i should do ?

You can use this class instead on Windows Phone:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/system.net.dnsendpoint%28v=vs.105%29.aspx

You'll have to wrap it in a plugin, though.