Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > .NET

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-22-2009, 09:52 AM
scooby scooby is offline
Registered User
 
Join Date: Oct 2009
Posts: 2
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.
Reply With Quote
  #2  
Old 11-06-2009, 02:29 PM
jwiese jwiese is offline
Registered User
 
Join Date: Sep 2007
Posts: 63
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.
__________________
John Wiese
ISV Architect Evangelist - Microsoft
http://blogs.msdn.com/usisvde
Reply With Quote
Reply

Bookmarks

Tags
socket, socketexception, tcpclient, wireless, wlan

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -4. The time now is 08:27 AM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.