TcpClient work differently betwenn Emulator and Real Device.

  • Thread starter Thread starter deneb
  • Start date Start date
D

deneb

Hello?

here's very short code. (VB.NET)

Dim tClient As TcpClient = New
System.Net.Sockets.TcpClient("100.100.100.222", 10123)

That is constructor of TcpClient with two parameters
(ByVal hostname As String, ByVal port As Integer)

This code work in Emulator.
But it doesn't work in Real Device.

I just change my code that use connect method of TcpClient Class so
that I can get a good result in Real Divice too.

But I wonder why. what is the reason.
I surfed some articles which tell me
"it's about DNS thing"

could you explan me more easily? with some example??????

Thank you!

PS. My Device is connected with wireless lan.
(it has IP - 100.100.100.42)
My Company uses private IP.
 
Alex~ Thank you for your help..

But Still I wonder why the code work in emulator.
Is there anybody can explain this for me?
 
Back
Top