如果您从未使用过Remote Desktop,这是一种远程连接到另一台 PC(办公室、家中等)并完成工作的绝佳方式,否则除非您身临其境,否则您无法完成工作。我经常使用远程桌面连接到我们办公室的服务器,连接到用户的计算机以提供技术支持,并连接到我家中的个人计算机以访问文件。
为了使用远程桌面(Remote Desktop),您需要了解几件事。首先(First),远程桌面仅适用于Windows XP 和 Windows(Windows XP and Windows) 2003。我的意思是您只能连接到Window (INTO)XP(Window XP)或 2003 机器。您可以使用Windows 98、ME 或 2000 连接INTO Windows XP或 2003 机器,但不能远程连接INTO 98、ME 或 2000 机器。(INTO)如果您希望能够连接到 Windows 2000 或更早版本的机器,则必须购买商业软件。
由于该帖子已超过 7 年,因此上述声明已过时。您还可以连接到Windows Vista、Windows 7 或 Windows 8 机器。此外,由于Microsoft最近停止了对Windows XP的支持,因此随着时间的推移,本教程的用处将变得越来越小。如果有兴趣,请查看我关于为 Windows 8 配置远程桌面的帖子。
其次,您需要确保您以计算机管理员(computer administrator)身份登录机器,以便将其设置为远程访问。如果您从商店购买计算机或直接从制造商处购买计算机,则您创建的第一个用户名(user name)始终是管理员帐户(Administrator account)。
检查您是否是管理员(Administrator)的一种简单方法是转到“开始(Start)”、“控制面板(Control Panel)”,然后单击“用户(User) 帐户(Accounts)” 。您会看到您的用户名(user name),它旁边应该写有“ Administrators ”或“ Computer Administrator ”。
第三,您机器上的管理员帐户(administrator account)必须有密码。如果您在启动计算机时无需输入密码即可访问Windows,则您没有设置密码,远程桌面(Remote Desktop)将无法工作。远程桌面不允许您使用没有密码的用户帐户连接到计算机。(Remote desktop does not allow you to connect to a computer with a user account that does not have a password.)
当您转到用户(User) 帐户(Accounts)并单击管理员帐户(Administrator account)时,您将看到一个为该帐户创建密码的选项。继续前进,然后再继续。
接下来,如果您要连接的计算机运行的是Windows XP SP3,那么您需要打开防火墙以允许远程桌面连接。为此,请转到“开始(Start)”、“控制面板(Control Panel)”、“ Windows 防火墙( Windows Firewall )”,然后单击“例外(Exceptions )”选项卡。
确保选中远程桌面(Remote Desktop) 复选框(check box)。为了使远程桌面(Remote Desktop)正常工作,需要做的最后一件事是告诉Windows我们希望允许用户远程连接。到目前为止,我们刚刚满足了要求,但现在我们必须实际允许远程桌面连接到这台计算机。
转到开始(Start)、控制面板(Control Panel),然后单击系统(System)。单击(Click)远程选项卡(Remote tab)并确保选中“允许用户远程连接到此计算机”(“Allows users to connect remotely to this computer”) 框。不必担心单击“选择远程用户(Select Remote Users)”按钮,因为默认情况下管理员具有访问权限。如果您想授予非管理员帐户远程桌面访问权限(desktop access),请单击该按钮并添加用户。
就是这样!您的计算机现在已设置为远程桌面!首先尝试从(First)家庭网络(home network)上的另一台计算机连接到XP 机器(XP machine)。为了连接,请转到另一台(Start)计算机并单击(computer and click)开始、所有(All)程序、附件、通信(Communications)和远程桌面连接(Remote Desktop Connection)。如果您想从Windows Vista、Windows 7 或Windows 8连接到(Windows 8)XP 机器(XP machine),只需单击开始(Start)并搜索远程桌面连接(desktop connection)。在Windows 8上,转到开始屏幕(Start Screen)并开始输入以执行搜索。
在对话框中(dialog box),您可以输入IP 地址(IP address)或计算机名称。最好的连接方式是输入计算机的IP 地址(IP address)。为了获取您要连接的计算机的IP 地址(IP address),请转到计算机并单击(computer and click)Start、Run并输入CMD。
在黑色命令窗口(command window)中,键入不带引号的单词“ (word “)ipconfig ”,如下所示,然后按Enter。
您会看到您的IP 地址(IP address)与其他一些信息一起列出,但您不必担心。记下该IP 地址(IP address)(192.xxx 或类似名称),然后将该数字准确地输入另一台计算机(您要连接的计算机)上的远程桌面文本框中。(desktop text box)
单击连接(Connect ),您应该会弹出一个登录屏幕(login screen pop),这意味着您已成功连接到另一台计算机。您现在可以输入计算机管理员用户名和密码(Computer Administrator user name and password)。
如果您收到一条错误消息,指出计算机无法接受新连接等,这意味着某些配置不正确。请记住,您需要为管理员帐户提供密码,在防火墙中打开端口,然后选中(Remember)系统(System )属性中的允许远程连接复选框。这三个项目都需要在您要连接到的计算机上执行。
一旦您能够从同一网络内连接,现在您可以尝试从外部连接。因此,如果您想从办公室连接到您的家用计算机(home computer),您可以这样做,但您必须做一些额外的事情。
首先,您必须获取您的公共IP 地址(IP Address)(不是 192.168.xx 号码),您可以通过转到您要连接的计算机并导航到网站(web site) http://www.whatismyip.com/来完成此操作,并且这将为您提供您的公共 IP 地址。这是可以从世界任何地方用于连接到您的特定位置的地址,并且是独一无二的。不幸的是,在大多数家庭连接中,此公共IP 地址(IP address)经常更改且无需通知。基本上(Basically)要解决这个问题,你必须使用动态DNS。我不会在这篇文章中详细介绍,但请阅读我的其他文章以了解如何配置它:
为动态 DNS 配置路由器
什么是动态 DNS 以及如何(Dynamic DNS and How)设置它
您要做的第二件事是打开路由器中的端口(除非您将电缆调制解调器(cable modem)直接连接到计算机)并将该端口转发到您要连接的计算机。这是您在 Netgear 路由器上执行此操作的方法(正如我所拥有的那样),该过程对于其他路由器几乎相同,只是它可能被称为其他名称。大多数制造商的网站都有一篇关于如何配置其特定路由器以进行端口转发(port forwarding)的文章, 因为这很常见。
您需要通过在浏览器地址栏中输入路由器的IP 地址来登录路由器。(IP address)您可以通过转到网络上的任何计算机(您要连接的计算机)并像我们上面所做的那样打开命令提示符并再次输入 ipconfig 来确定路由器的(command prompt)IP 地址。(IP address)除了IP Address 字段(IP Address field),您还会看到Default Gateway,这是您的路由器。从上面的截图,你可以看到我的是 192.168.244.2。
在浏览器地址栏中键入该地址,如下所示,然后按 Enter(press Enter):
很可能会提示您输入用户名和密码(user name and password)。通常,您可以在文档中或路由器本身的底部找到它。对于我的 Netgear 路由器,用户名是“admin”(小写),密码是“password”。
进入后,您应该会看到一个名为“端口转发/端口触发”的选项或类似的选项。我知道 Netopia将这些针孔(Pinholes)称为针孔 ,在Linksys上它可能称为Service 或Applications。
进入端口转发页面后,您可能会看到不同的布局/选项。基本部分将给转发一个名称,如“远程桌面”,选择外部端口和内部端口,协议并选择数据应该转发到的设备的IP 地址。(IP address)
对于远程桌面,您总是希望为Protocol选择(Protocol)TCP。默认情况下(Be default),远程桌面使用端口 3389(port 3389),因此将其输入到内部和导出端口(export port)框中。最后,内部IP地址(IP address)应该是XP机器的(XP machine)IP地址(IP address)。在某些设置中,系统会要求您提供起始端口(starting port)、结束端口和触发端口。只需(Just)将 3389 用于任何端口盒。
单击应用(Click Apply),您就完成了!您现在应该可以使用您的公共IP 地址(IP address)(在远程桌面连接对话框的(Remote Desktop Connection dialog)计算机(Computer) 文本框中(text box)输入此地址)通过路由器连接到您的计算机!
如果您在远程连接到Windows XP 机器(Windows XP machine)时遇到任何问题,请在此处发表评论,我会尽力提供帮助。享受!
How to Setup Remote Desktop on Windows XP
If you have never used Remоte Desktop, it is a really grеat way to connect to another PC (office, home, etc) remotely and get work done that you otherwise could not get done υnless уou were phуsically at the machine. I routinely use remotе desktop to connect to servers at our office, cоnnect tо uѕer’s computers tо provide tech support and to connect to my personal computer at home to acсess files.
In order to use Remote Desktop, there are a couple of things you need to understand. First off, remote desktop only works with Windows XP and Windows 2003. What I mean by this is that you can only connect INTO a Window XP or 2003 machine. You can use a Windows 98, ME, or 2000 to connect INTO a Windows XP or 2003 machine, but you cannot connect INTO a 98, ME or 2000 machine remotely. If you want to be able to connect to a Windows 2000 or earlier machine, you’ll have to buy commercial software.
Since this post is over 7 years old, the above statement is out-dated. You can also connect into a Windows Vista, Windows 7 or Windows 8 machine. Also, since Microsoft has recently ended support for Windows XP, this tutorial will becomes less useful as time passes. If interested, check out my post on configuring remote desktop for Windows 8.
Secondly, you need to make sure that you are logged in as a computer administrator on the machine in order to set it up for remote access. If you brought a computer from a store or got it straight from the manufacturer, the first user name you create is always an Administrator account.
An easy way to check whether or not you are an Administrator is to go to Start, Control Panel and then click on User Accounts. You’ll see your user name and it should have “Administrators” or “Computer Administrator” written next to it.
Thirdly, the administrator account on your machine must have a password. If you do not have to type in a password in order to access Windows when you start up your computer, then you do not have a password set up and Remote Desktop will not work. Remote desktop does not allow you to connect to a computer with a user account that does not have a password.
When you go to User Accounts and click on the Administrator account, you will see an option to create a password for the account. Go ahead and do that before moving on.
Next, if the computer you are connecting to is running Windows XP SP3, then you need to open the firewall to allow remote desktop connections. To do this, go to Start, Control Panel, Windows Firewall and click on the Exceptions tab.
Make sure that the Remote Desktop check box is checked. The last thing that needs to be done in order for Remote Desktop to work correctly is to tell Windows that we want to allow users to connect remotely. So far we’ve just fulfilled the requirements, but now we have to actually allow remote desktop connections to this computer.
Go to Start, Control Panel, and click on System. Click on the Remote tab and make sure that the “Allows users to connect remotely to this computer” box is checked. Don’t worry about clicking the Select Remote Users button because Administrators have access by default. If you want to give an non-administrator account remote desktop access, then click that button and add the user.
And that’s it! Your computer is now setup for remote desktop! First try connecting to the XP machine from another computer on your home network. In order to connect, go to the other computer and click on Start, All programs, Accessories, Communications, and Remote Desktop Connection. If you want to connect to the XP machine from Windows Vista, Windows 7 or Windows 8, just click on Start and perform a search for remote desktop connection. On Windows 8, go to the Start Screen and start typing to perform a search.
In the dialog box, you can type in the IP address or the name of the computer. The best way to connect is to type in the IP address of the computer. In order to get the IP address of the computer you want to connect to, go to the computer and click on Start, Run and type in CMD.
In the black command window, type in the word “ipconfig” without the quotes as shown below and press Enter.
You’ll see your IP address listed along with some other info, but you don’t need to worry about that. Write down that IP address (192.x.x.x or something similar) and type that number exactly into the remote desktop text box on the other computer (the computer you are connecting from).
Click Connect and you should get a login screen pop up, which means you have successfully connected to the other computer. You can now enter the Computer Administrator user name and password.
If you get an error saying that computer cannot accept new connections, etc. that means something was not configured correctly. Remember you need to give the administrator account a password, open the port in the firewall, and check the allow remote connections check box in the System properties. All three items need to be performed on computer you want to connect TO.
Once you are able to connect from within the same network, now you can try to connect from outside. So if you want to connect to your home computer from the office, you can do that, but you’ll have to do a few extra things.
First, you have to get your public IP Address (not the 192.168.x.x number) and you can do this by going to the computer you want to connect into and navigating to the web site http://www.whatismyip.com/ and this will give you your public IP address. This is the address that can be used from anywhere in the world to connect to your specific location and is unique. Unfortunately, on most home connections, this public IP address changes often and without notice. Basically to solve that problem, you have to use dynamic DNS. I won’t go into much detail in this post, but read my other posts on how to configure it:
Configuring a Router for Dynamic DNS
What is Dynamic DNS and How to Set It Up
The second thing you have to do is open the port in your router (unless you’re connecting your cable modem directly into your computer) and forward that port to the computer you want to connect to. Here’s how you would do this on a Netgear router (as I have that) and the procedure is pretty much the same for other routers, except that it might be called something else. Most manufacturer’s web sites have an article on how to configure their particular router for port forwarding since it’s very common.
You’ll need to log into your router by typing it’s IP address into the browser address bar. You can figure out the IP address of your router by going to any computer on your network (that you want to connect into) and opening the command prompt like we did above and typing ipconfig again. In addition to the IP Address field, you’ll also see Default Gateway, this is your router. From the above screenshot, you can see mine is 192.168.244.2.
Type that address into your browser address bar as follows and press Enter:
You’ll most likely be prompted for a user name and password. Usually, you can find this in the documentation or on the under side of the router itself. For my Netgear router, the username as “admin” (lowercase) and the password was “password”.
Once you’re in, you should see an option called “Port Forwarding/Port Triggering” or something very similar. I know Netopia calls these Pinholes and on Linksys it might be called a Service or Applications.
Once you’re on the Port Forwarding page, you might see different layouts/options. The basic parts will be giving the forward a name like “Remote Desktop”, choosing the external port and the internal port, the protocol and picking the IP address for the device the data is supposed to be forward to.
For remote desktop, you’ll always want to choose TCP for Protocol. Be default, remote desktop uses port 3389, so type that into both the internal and export port boxes. Lastly, the internal IP address should be the IP address of the XP machine. On some setups, you’ll be asked for a starting port, ending port and triggering port. Just put 3389 for any port boxes.
Click Apply and you’re done! You should now be able to use your public IP address (type this into the Computer text box in the Remote Desktop Connection dialog) to connect through your router to your computer!
If you have any problems remotely connecting to your Windows XP machine, please post a comment here and I’ll try to help. Enjoy!