PDA

View Full Version : [Guida] Configurazione Web Remote Desktop su Windows


as10640
24-08-2007, 12:23
Ciao a tutti.

Per necessità aziendali ho divuto approfondire un argomento che forse pochi conoscono: il Web Remote Desktop, che consente di visualizzare il Desktop del PC su cui è installato da qualsiasi browser. Sempre per le finalità di cui sopra, ho realizzato una piccola guida con le conoscenze apprese ricercando su internet. Spero che la troviate interessante, sottolineo tra l'altro che il Web Remote Desktop è più performante del semplice Remote Desktop, e quindi meglio si presta alle connessioni lente.


Set Up Remote Desktop Web Connection with Windows

Get Your Host Computer Ready

The first step in enabling Remote Desktop Web Connection is to install the necessary software on the host computer. Remote Desktop Web Connection is an optional World Wide Web Service component of Internet

Information Services (IIS), which is included by default in Windows XP Professional. IIS responds to requests from a Web browser. Have your Windows XP Professional CD handy, and follow these steps:
1. Open Control Panel click Add or Remove Programs, and then click Add/Remove Windows Components.
2. Click Internet Information Services, and then click Details.
3. In the Subcomponents of Internet Information Services list, click World Wide Web Service, and then click Details.
4. In the Subcomponents of World Wide Web Service list, select the Remote Desktop Web Connection check box, and then click OK.
5. In the Windows Components Wizard, click Next. Click Finish when the wizard has completed.
6. Click the Start button and click Run. Type Net Stop w3svc, and click OK. This temporarily stops the World Wide Web service to keep your system safe while you update it with security patches. I highly recommend

using Automatic Updates, especially after installing Internet Information Services.



Configure Internet Information Services

By default, IIS is identified on your computer by the TCP port number 80. The steps in this section change the TCP port number and make it much more difficult for a potential attacker to communicate with your

computer. The steps in this section are optional, but if you do follow them, you'll dramatically improve the security of your system. If you are already using your computer as a Web server, you should leave the TCP

port number at the default setting of 80.
1. Open Control Panel, click Performance and Maintenance, and then click Administrative Tools. Double-click Internet Information Services.
2. In the ISS snap-in, expand your computer name, expand Web Sites, right-click Default Web Site, and then click Properties.
3. On the Web Site tab, change the value for TCP Port. Enter a number between 1000 and 65535 that you can remember easily, such as the month and day of a birthday or anniversary. You'll need to know the TCP

Port when you connect to the computer in the future.
4. Click OK, and close the Internet Information Services snap-in.



Configure Remote Desktop

To connect using Remote Desktop, you must have a user account with a password. If you don't yet have a password on your account, create a password by opening Control Panel, and clicking User Accounts. Click

your account, click Create a password, and follow the prompts. After you have a password, follow these steps to enable Remote Desktop:
1. Right-click My Computer, and click Properties.
2. On the Remote tab, click the Allow users to connect remotely to this computer check box.
3. Click Select Remote Users, and then click Add.
4. In the Select Users dialog box, type the name of the user and then click OK. Click OK again to return to the System Properties dialog box, and then click OK to close it.

Change Remote Desktop default port

By default, RDP is identified on your computer by the TCP port number 3389. The steps in this section change the TCP port number and make it much more difficult for a potential attacker to communicate with your

computer. The steps in this section are optional, but if you do follow them, you'll dramatically improve the security of your system.
1. Run Regedit and go to this key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp.
2. Find the "PortNumber" subkey and notice the value of 00000D3D, hex for (3389). Modify the port number in Hex and save the new value.



Change the Listening Port in the Windows Terminal Server Web Client

To change the Terminal Server listening port in the Windows XP Service Pack (SP) 1 (or later) and Windows Server 2003 clients, follow these steps:
1. Locate the Default.htm file in the %system root%\Web\TsWeb folder.
2. Open Default.htm in Notepad or in another text editor.
3. Locate the entries that start with "MsRdpClient.AdvancedSettings2".
4. Add the following line after these entries
MsRdpClient.AdvancedSettings2.RDPPort = xxxx
where xxxx is the new port.
To make sure that you can connect with the new setting, append the port number to that of the published URL (that is, www.xxx.xxx.xxx:PortNumber).



Configure Your Router

If you use a router to connect to the Internet, you probably need to configure it to allow the Remote Desktop connection to your computer. You need to forward two ports to your Windows-based computer: the TCP port

you specified in the "PortNumber" subkey in Windows Registry (or TCP port 3389 if you did not change the default), and the port you specified in the TCP Port field in Internet Information Services (or TCP port 80 if you

did not change the default).



Connect to Your Desktop

1. Open Internet Explorer, and enter the URL http://ipaddress:port/tsweb/. For example, if your IP address is 192.168.1.120, and you chose the TCP Port 1374, you would enter the URL

http://192.168.1.120:1374/tsweb/.
2. If you're prompted to install the Remote Desktop ActiveX control, click Yes.
3. On the Remote Desktop Web Connection page, shown in Figure 2, click Connect. You don't need to fill in the Server field. If you leave the Size field set to Full-screen, the remote desktop will take over your local

desktop.
4. Enter your user name and password at the Windows logon prompt, as shown in Figure 3, and then click OK. You'll see your desktop, complete with any windows that were left open the last time you used the

computer.
When you're done, disconnect by closing the browser, or clicking the X at the top of the screen in full-screen mode. Be sure to close all browser windows. Your user name and password aren't stored, so you don't have

to worry about someone else accessing your system.