Starting in Windows XP Service Pack 2 and all newer versions of Windows (Vista, Windows 7), Microsoft included a product called the Windows Firewall which allows you prevent everyone on the Internet from communicating with your computer. We can use this tool effectively to help keep your X-Server from receiving unwanted connections, and thus reduce the number of times the dialogue box asking you to accept a connection appears.
On Windows XP with Service Pack 2 or above installed and the built-in firewall enabled, you can take further steps to reduce the number of unsolicited connection requests you receive.
To do so:
- Open the Control Panel folder via the Start Menu
- Double click on Windows Firewall (or access it via the Security Center control panel)
- Click on the Exceptions tab
- If you followed the instructions linked above, you have an X-Win32 program listed in the Program and Services section.
- If you have installed more than one version of the X-Win32 program on your PC (this happens when you upgrade) you may have multiple entries. If you highlight one and click on “Edit…” (or double click the one you highlighted) it will show you the path to the application. The path contains the version number. You can delete entries for older versions safely.
- Once you’ve identified the correct entry, click “Edit…”
- A new dialogue box will appear. Click on “Change Scope…”
- Another dialogue box will appear, allowing you to configure the Internet addresses you wish to allow to connect to your X server. You do this by specifying an IP address range in the “Custom list” section. First, click the radio button next to Custom list. Then, supply the address range appropriate for your needs.For most people, allowing the 184.108.40.206/255.255.0.0 address space, which encompasses most of BU, will be sufficient. SMG users may need to use 220.127.116.11/255.255.0.0 instead of or in addition to the 18.104.22.168 range–separate multiple ranges with a comma.
- Click OK and this dialogue box will close
- Click OK to close the “Edit a Program” dialogue box
- Click OK once more to close the Windows Firewall box (and once more to close the Security Center if necessary).
Your PC will now refuse X server connections that do not originate from the specified local BU IP address range, reducing the number of times you get prompted to accept a connection you really didn’t want.