TcpClient works in Emulator but not with a device in the cradle

B

Bob Trabucco

Hello,

I am converting my old eVB app to the .NET Compact Framework. It uses the
TcpClient class to connect to a server program that I have running on my
desktop - Tcp address 192.168.0.15 and port 6051.

My app works great when running in the emulator

When I run it on my ipaq sitting in the cradle I get "The requested address
is not valid in its context"

My old app connects great (using the old Winsock activex control) so I know
the machine should be set up properly.

Any clues??

Thanks in advance

Bob
 
B

Bob Trabucco

I found it! Thanks anyway...

Dim ipAddress As IPAddress = ipAddress.Parse(szServerAddress)

Dim ipLocalEndPoint As IPEndPoint = New IPEndPoint(ipAddress,
Val(szTCPIPPort))

Client.Connect(ipLocalEndPoint)



Bob
 

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