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

  • Thread starter Thread starter Bob Trabucco
  • Start date Start date
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
 
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
 
Back
Top