TcpClient work differently betwenn Emulator and Real Device.

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.
 
D

deneb

Alex~ Thank you for your help..

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

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