Problem with DNS.Resolve

  • Thread starter Thread starter Tomer
  • Start date Start date
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.
 
Back
Top