Using the Windows CE VNC Viewer
VNC HPC Client |
 |
AT&T/ Conduits |
210 KB |
|
CESD-S-0037Applies To:
- Windows CE 2.0
- Windows CE 2.11 (HPC Pro)
- Windows CE 3.0 (HPC 2000)
Overview:
If you wish to connect your Handheld PC to a Remote system using
the Virtual Network Computing (VNC) protocol you will need to run
the VNC viewer on your H/PC.
This beginners guide covers how to connect to a use the Windows
CE VNC Client.
How-to Guide:
If you wish to connect to a VNC Server you must be connected to
the remote system outside of ActiveSync. You cannot connect your
Handheld PC to a VNC server while ActiveSync is running.
To do this there are five options:
- Connect your Device to your Local Area Network using the TCP/IP
protocol
- Use a modem to dial-in to the remote computer
- Connect the remote computer & H/PC to the Internet and connect
directly (Not Recommended)
- Connect to the VNC server through a VPN Tunnel
- Connect to the Remote system using Direct Cable Connection
Local Area Network
Pro. Provides the fastest possible VNC connection
Con. Requires Network Hardware; Remote machine must be on the LAN
Dial-in
Pro. Provides the most security on a virtual level
Con. Requires Modem; Requires Available Phone Line; Slow
Internet
Pro. Convenient for accessing you PC from anywhere
Con. VNC offers NO security for your PC; Securing the connection
requires expert knowledge
VPN Tunnel
Pro. Provides the freedom of the Internet and an additional layer
of security
Con. Requires expert knowledge; May be Expensive; HPC2000 only
Direct Cable Connection
Pro. None
Con. Only allows you to connect to a Remote PC at a range of 5 metres;
Pointless
Specify the Server Name / Address and Desktop Number
You've installed VNC server, and now it's time to connect your
Handheld PC to it.
First you need to install the VNC Views Client for Windows CE onto
your device. You can download the VNC View Client package from the
HPC:Factor download centre of from the download section of this
article

But what to put in the VNC connection box? This will depend on
how you are connecting to your server, and even on what Operating
System your server is running.
If your VNC server is Windows based, the suffix part of
the VNC Server address will generally be the same. You must add
:0 after the physical Address / Name of the server e.g. 192.168.0.1:0
-or- snoopy:0
If you are connecting to a Unix / Linux system then the suffix
number will have been defined when you started the server e.g. snoopy:5
-or- 192.168.0.1:5
To discover the IP Address / Name of the computer you are connecting
to:
If you are connecting over a Local Area Network
Whether you can use the Remote Computers Name will depend on the
complexity of the LAN you are using. To discover the name of the
VNC Server computer.
- Open the Control Panel
- Choose Performance and Maintenance
- Choose System
- Open the Computer Name tab
- The computer name will be listed in the 'Full computer name:'
area as shown below

In the above example the computer name is Inspiron. So on the Handheld PC in
the VNC Client connection box you would type:
Inspiron:0
To connect to the computer names Inspiron, which in this example
is running Microsoft Windows
If the VNC client cannot connect to the remote computer using the
correct Computer Name then the LAN you are using may not be sophisticated
enough to connect using the Name*.
You should now try and connect to the VNC Server using it's Network
IP address. To discover the IP address of the computer running the
VNC Server:
- Click Start
- Click Run
- If running Windows NT 4.0, 2000, XP or 2003 type: cmd
- If running Windows 95, 98, 98SE, Millennium type: command
- Click OK
- At the prompt type ipconfig and press enter
- The machines network IP address will be listed as 'IP Address...'
(Under non-Windows platforms consult the OS documentation on how
to lookup the IP address)
If for example the IP Address is listed as 192.168.1.165 you would
then type the following in the VNC Client's address box:
192.168.1.165:0
To connect to the computer at Address: 192.168.1.165
* NB: You will need a local DNS or WINS server
in order to accomplish this
If you are connecting using a Dial-in connection
You will need to know the Dial-up Server's designated IP address
- Connect your HPC over the phone line
- Click Start
- Open the Control Panel
- Open Network Connections
- Double Click the 'Incoming Connections' Entry for your device
- Select the Details tab to view the IP address information
Type the IP address of the host system into the VNC Client connection
box followed by the Desktop suffix e.g. :0
If you are connecting over the Internet
You will need to know the Public IP address of your VNC Server
System. To discover the IP address:
- Click Start
- Click Run
- If running Windows NT 4.0, 2000, XP or 2003 type: cmd
- If running Windows 95, 98, 98SE, Millennium type: command
- Click OK
- At the prompt type ipconfig /all and press enter
- Look for an entry named PPP adapter XXX (XXX will be the name
of the connection you are using to access the Internet)
- The Public IP address is listed as 'IP Address...'
(Under non-Windows platforms consult the OS documentation on how
to lookup the IP address)
On your Handheld PC you must connect to the Internet Then in the
VNC Client Connect to box you must type the IP Address found in
Step 8 followed by the desktop suffix e.g.
81.1.23.156:0
NB: Depending on your Internet connection your
Public IP address may change every time you re-dial or reboot. So
you may need to check the IP Address frequently
If you are connecting through a VPN Tunnel
You will need to know either the IP address of the server machine
awaiting a VPN connection or the IP address of the VPN Gateway that
you need to contact. Further information on VPN connections is out
of the scope of this article.
If you are connecting over Direct Cable Connection
Once you have the DCC connection established you will be able to
use the Computer name to contact the remote server. To discover
the Computer Name see the 'If you are Connecting over a Local Area
Network' section.
e.g. snoopy:3
If using the Computer Name fails you will need to know the DCC
Host IP address. To discover this under Windows 2000, XP, 2003:
- Connect your HPC over DCC
- Click Start
- Open the Control Panel
- Open Network Connections
- Double Click the 'Incoming Connections' Entry for your device
- Select the Details tab to view the IP address information
Type the IP address of the host system into the VNC Client connection
box followed by the Desktop suffix e.g. :0
If you are connecting through the cradle
ActiveSync uses a fixed IP address range for peer communication between host and client device.
To connect to your host PC from the Handheld PC specify the following server address/desktop ID in the client:
192.168.55.100:0
Setting the VNC Client Options
Once you know the Server address and desktop number that you are
connecting to you may need to configure some of the connection settings.

To do so, click the options button on the VNC Client window.

The Connection Options dialogue allows you to specify additional
client settings and information that you want the server to take
into account while you are connected.
We recommend that you leave the Encoding options on Hextile, unless
you are experiencing difficulties. Copyrect encoding improves the
draw processing of the viewer and should be left enabled unless
you are experiencing problems.
Deiconify on Bell will initiate an Audible beep on the viewer
on a system event. This option is only available when connecting
to UNIX
Swap Mouse buttons 2 and 3 is for use under some older workstations
which require a 3rd mouse button. You should not need to change
this setting
Restrict pixels to 8-bit (for slow networks) is important
when using a mono H/PC, a older Windows CE 2.0 device or a slow
connection. This option reduces the size of the information being
sent from the server by limiting the colour information to 256 colours.
If you are having problems with VNC you should ensure that you have
checked this option first.
Request Shared Session allows you to connect to a VNC server
with one or more other VNC user. Ordinarily VNC will disconnect
any clients who are active when you connect.
View Only more ignores inputs from the Stylus and Keyboard
of the Handheld PC allowing the user to simply observe
Click OK when you have finished specify options.
Now that you have setup the VNC Viewer for this session, click
OK to connect to the server. If a connection can be created successfully
you will be presented with the password prompt, after which the
VNC session will begin.

Using a VNC session is just like using your Handheld PC, except
some commands will not be sent to the remote system. Commands such
as Ctrl + Alt + Del will be picked up by the Handheld PC, displaying
the Windows CE Task List.
As a result, a number of the most commonly requested commands for
remote systems can be found on the Keys menu in the VNC Viewer.
Selecting Ctrl + Alt + Del from this list will send the CAD command
to the remote system.
All other commands are identical to normal Handheld PC functions,
such as Alt + Tap for Right Click. To change the options for a VNC
session choose Options from the 'Connection' menu. The end a VNC
session choose close from the 'Connection' menu.
See Also:
Overview of VNC Support
Links:
RealVNC Home Page: http://www.realvnc.com/
|