HOWTO: Use the Winsock Control Through a Serial Connection
ID: Q189626
|
The information in this article applies to:
-
Microsoft Windows CE Toolkit for Visual Basic 6.0
-
Microsoft Windows CE Toolkit for Visual Basic 5.0
SUMMARY
To use the Windows CE Toolkit for Visual Basic 5.0 or Windows CE Toolkit for Visual Basic 6.0 (VBCE) Winsock
control in a VBCE application using a serial connection with a desktop
machine, the Remote Access Server on the desktop must be configured to
allow remote TCP/IP clients to access the entire network.
MORE INFORMATION
When the handheld device is connected via a serial connection to a host
desktop machine, the desktop machine assigns a pre-defined TCP/IP address
to the handheld device from a pool of static addresses. Additionally, by
default, the desktop's TCP/IP clients are only given access to the local
machine, not the entire network. This means that when a VBCE Winsock
application tries to get a RemoteHostIP address from a pre-defined remote
host, it is unable to do so because the handheld device's LocalIP address
is known only to the host desktop machine and not to the network.
Without the right Remote Access Server configuration settings, the error
10050 "Network Subsystem Failed" occurs when the VBCE Winsock application
tries to connect to a remote host.
The following steps describe how to configure the desktop machine to allow
dynamic assignment of IP addresses and access to remote hosts that will
allow the handheld device to connect to a remote host on the network. Note
that this will require a reboot of the machine when completed.
Step-by-Step Example
- From the Control Panel, click Network.
- In the Network dialog box, click the Services tab.
- Click Remote Access Server, and click Properties.
- Select the COM port that your device is connected to (presumably, COM1), and click Network.
- In Server Settings, make sure that the TCP/IP check box is selected and click Configure.
- In Allow remote TCP/IP clients to access:, make sure that Entire network is selected.
- Ensure that "Use DHCP to assign remote TCP/IP client addresses" is selected.
- Click OK to dismiss the RAS Server TCP/IP Configuration dialog box.
- Click OK to dismiss the Network Configuration dialog box.
- Click Continue in the Remote Access Setup dialog box.
- Click Close to dismiss the Network utility. The computer will restart.
© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Michael Fosmire, Microsoft Corporation
Additional query words:
VBCE WCE wince vbce5 vbce6
Keywords : kbnetwork kbAPI kbRAS kbSDKPlatform kbToolkit kbVBp500 kbVBp600 kbWinCE100 kbWinsock kbGrpVB kbGrpNet
Version : :; WINDOWS:
Platform : WINDOWS
Issue type : kbhowto