|
#1
|
|||
|
|||
|
TcpClient constructor problem over WLAN
I have a simple client application on my CE device, and a simple host application on my laptop. The client app uses the System.Net.Sockets.TcpClient class to connect. i.e.
client = new TcpClient(serverIP, port); When my CE device is connected to my laptop over a USB connection, these applications work fine. But when I remove the USB and run the same applications over a wireless network, the TcpClient constructor throws a socket exception. Both the device and the laptop are definitely connected to the wirelss network, and the device can even ping my laptop over the WLAN using the device's bilt in WLAN tools, but when usig my application, the TcpClient constructor method throws a socket exception and cannot connect. The exact same code works fine when connected over USB. Any help would be really appreciated. |
|
#2
|
|||
|
|||
|
What is the socket error you are getting? Also, just to be sure, if you connect to wireless and then start the apps on both machines...without having run them over the USB connection, this is when you get the error? Just trying to confirm that the app has not been run and the port being opened and listensing on the USB connection still.
|
![]() |
| Bookmarks |
| Tags |
| socket, socketexception, tcpclient, wireless, wlan |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| tcpclient | skyloveying91 | .NET | 0 | 07-07-2009 02:56 AM |
| Admission Control For WLAN (DHCP, Service Controller)? | irvineyan | VB Classic | 0 | 04-08-2007 06:44 PM |
| WLAN Security | binoykl | Mobile | 1 | 06-12-2006 12:44 PM |
| Starting WLAN programming | mark-w | Mobile | 1 | 03-06-2006 01:45 AM |
| TCPClient + GetStream(); | TBusot | .NET | 1 | 04-24-2001 06:35 PM |