5.7.1. Configuring the Windows XP Remote Server
If you want to be
able to control your Windows XP Professional system remotely, set it up as a remote server. Using an administrator user account, choose
Start, Control Panel ,Performance and Maintenance ,System , click the Remote tab, select the "Allow
users to connect remotely to this computer" checkbox in the Remote Desktop
section of the tab to enable incoming connections, and click Select Remote
Users if you want to control which user accounts can be used by remote clients.
(Windows automatically allows connections from the current user, along with all
user accounts in the local Administrators and Remote Desktop Users groups.)
Normally,
remote clients connect to the server via a local area network or a permanent
Internet connection. However, you can also configure the remote server to
accept incoming phone calls if you have a dial-up modem. Create a dial-up
connection that accepts incoming calls by running the New Connection Wizard
(click "Create a new connection" from the task pane in the Network
Connections window). Choose "Set up an advanced connection" as the
Network Connection Type, choose "Accept incoming connections," choose
your modem, choose whether to accept VPN connections, and choose which user accounts the incoming connection
can connect to.
Firewalls usually refuse remote access connections, so if you want your remote server to be
accessible from the Internet, you need to open a port in your computer's
firewall. Remote Desktop uses port 3389. If you use Windows XP's built-in
Windows Firewall, display the Network Connections window, right-click the
Internet connection, choose Properties from the shortcut menu, click the
Advanced tab, and click Settings to display the Advanced Settings dialog box.
Click the Remote Desktop checkbox; if the Service Settings dialog box appears,
just click OK.
When you connect from your remote client (described later in
this article), you need to provide a domain name or IP address. If your
computer connects via a dial-up, DSL, or cable connection, its IP address
changes each time you connect, and the computer doesn't have a domain name. One
solution is to have someone at the remote server display the _Network Connections window, right-click the Internet
connection, choose Status from the shortcut menu, click the Support tab, and
call, IM, or email you with the IP address that appears_. However, this solution is no good if no one is
available to do this. Instead, you can sign up for a dynamic DNS service at
http://www.dyndns.org or
http://www.tzo.com. The dynamic
DNS service at DynDNS.org gives you a free domain name in the form
<yourname>.dyndns.org (they offer several dozen domain names to which you
can add your name). TZO.com provides a subdomain at <yourname>.tzo.com
for $25 per year. You install a small utility on your computer that
automatically tells the dynamic DNS whenever your computer's IP address
changes.
One final configuration note: when a
client connects to your server via Remote Desktop, the user logs into one of
the Windows XP user accounts. You can't log into accounts that have no
password. Choose which account you plan for remote users to log into, and give
it a password.
5.7.2. Setting Up the Remote Client
To set up the remote client software that comes with
Windows XP, connect to the Internet and then choose Start/All Programs /Accessories /Communications /Remote Desktop
Connection.
(If it's not there, you need to install it from your Windows CD.)
In the Remote Desktop Connection window, type the domain name or IP address of
the server computer and click Connect. Log on with the Windows XP user account
and password for the remote server. Your computer screen now shows what's on
the screen of the server computer. A connection bar appears as a button on the
screen, showing the IP address of the remote server, along with Minimize,
Restore, and Maximize buttons you can use to resize the remote client window.
Once you're connected, you can cut and paste information
from the remote client window to other windows. You can also use local files in
your remote session; your local disk drives appear in My Computer (Windows
Explorer). When you print from the remote client, the print job goes to your
default local printer, not to the printer on the server.
Sometimes you would like to connect to
your home machine from work or while traveling. Making your home machine a
virtual private network (VPN) server is a secure way to accomplish this.
If you've ever taken
files home so that you can work on them on your personal computer, you've
probably had the experience of arriving to work the next day only to realize
you've forgotten to bring the files back with you. If the files were important
enough, you probably had to drive all the way back home to get them, or you're
had to make a lame excuse to your boss as to why you don't have the TPS report
ready yet. Perhaps you're a road warrior who has found yourself stranded in a
hotel room on a Monday morning, just hours before a big meeting, without that
copy of the presentation you thought you had copied from your home machine. If
either of these sounds like a situation you've been in, this is the hack for
you.
It is well known that Windows XP has
a VPN client built into it, which allows you to make secure connections to your
company's network. Less well known is that Windows XP also has the ability to act
as a VPN server, allowing you, or others you designate, to make secure
connections into your home network. While you have an established VPN session
with your home machine, you can access files from its hard drive or other
machines on the network that have file sharing enabled. All you need is a local
Internet connection and a VPN client that supports the Point to Point
Tunneling Protocol (PPTP), which the client for all versions of Windows does.
Preparing your home machine to accept
VPN connections is fairly straightforward. Click Start
Network and Internet Connections ,Network
Connections, Create a new
connection. This will launch the New Connection Wizard. While advancing through
this wizard, the options you want to enable are "Set up an advanced
connection," "Accept Incoming Connections," and "Allow virtual
private connections." The sixth screen of the wizard allows you to specify
the users that can use the VPN; make sure you enable at least one account. If
you haven't created a password for your user, now is the time to do so. You are
essentially opening up a part of your machine to the Internet, so make sure you
choose a good password. After the wizard is complete, nothing further needs to
be done; the VPN is ready to accept incoming connections. You can test this by
using a VPN client to connect to the IP address of the VPN server machine.
Most home users use a
router that provides Network Address Translation (NAT), which obscures the
actual IP address of the machine they want to make a VPN connection to. This
means you won't be able to make a VPN connection to your machine until you
configure your router to allow the VPN traffic to pass through to your VPN
server.