Problem with DNS.Resolve

T

Tomer

Hi,

I'm running this command:
MessageBox.Show(System.Net.Dns.Resolve(HostNameTB.Text).AddressList[0].ToStr
ing());

I input my computer ip address

On the emulator this works, on the ppc it doesn't.
I keep getting this message:
Socket Exception: No such host is known

The ppc is connected to the local network through an access point it gets an
ip, it can browse the web, and can ping my computer.
There's no firewall installed.

I've also tried this:
tcpClient.Connect(HostName,HostPort);

Still got the same error.

What should I do?

Tomer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top