pcAnywhere IP
port usage
Situation:
You want to configure a firewall to allow pcAnywhere connections, and you need
to know which IP ports pcAnywhere uses.
Solution:
pcAnywhere uses either of two sets of ports depending on the version of
pcAnywhere you are using. One set uses ports 65301 and 22. The second set uses
the registered ports 5631 and 5632.
| pcAnywhere version |
TCP (data) port number |
UDP (status) port number |
How to convert to the other set of ports |
| 2.0 |
65301 |
22 |
Download and install the file Ports_20.exe |
| 7.0 |
65301 |
22 |
Download and install the file Ports_70.exe |
| 7.50, 7.51 |
65301 |
22 |
Upgrade to 7.52 by downloading and installing the upgrade
file 75up_c.exe |
| CE |
65301 |
22 |
Ports cannot be changed |
| 7.52 |
5631 |
5632 |
Run the file Tcpport2.reg located in the pcAnywhere
folder. |
| 8.x, 9.0 |
5631 |
5632 |
Automatically accounts for connection to or from the older
set of ports. |
| 9.2 |
5631 |
5632 |
Does not automatically account for connection to or from
the older set of ports. See the document Cannot
connect with TCP/IP to older versions of pcAnywhere with version 9.2
for more detail. |
| 10.0 |
5631 |
5632 |
Please see How
to change the IP ports that pcAnywhere 10 uses |
pcANYWHERE32 7.52
This version includes two registry files. Importing one file or the other will
change the ports that pcAnywhere uses. The files are:
- Tcpport1.reg - Allows access to hosts with registered TCP/IP ports
(5631,5632)
- Tcpport2.reg - Allows access to hosts with older, non-registered ports
(65301,22)
Double-clicking the file imports the new settings into the Windows registry.
pcANYWHERE32 8.x, pcAnywhere 9.0
These versions of pcAnywhere automatically detect whether the opposite end is
using the older ports or the registered ports. If you want pcAnywhere to use
only the registered ports, follow these steps to change a registry setting:
1. Click Start, and then click Run.
2. In the Open box, type regedit and then click OK.
3. Navigate to the following key:
HKEY_LOCAL_MACHINE\Software\Symantec\pcAnywhere\CurrentVersion\System
4. Click Edit, point to New, and then click DWORD.
5. Change the DWORD name to: TCPIPPortCompatibility.
6. Change the value of TCPIPPortCompatibility to 0.
7. Close the Registry Editor.
How
to change the pcAnywhere IP ports
Situation:
Some firewalls only allow a single pcAnywhere host to use an IP port. Additional
pcAnywhere hosts behind that firewall must use different ports. You want to know
how to change these ports.
Solution:
Changing pcAnywhere IP ports involves editing the Windows registry. If you need
to do this frequently, creating .reg files is the safest and most convenient way
to make the change. This is particularly handy for remotes that may have to
connect to more than one host behind the firewall.
To create the .reg file:
1. Click Start, and then click Run.
2. Type regedit in the Open window, and then click OK.
3. Locate and select the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\pcAnywhere\CurrentVersion\System
4. Click Registry and then click Export Registry File. The Export Registry
File window appears.
5. Enter a file name (this could be a name such as 5631.reg for the standard
port numbers, or any significant name), and save the file to the desktop.
6. Close the registry and navigate to the newly created .reg file.
7. Right-click the file and click Edit (left-click will import the file back
to the registry).
8. Delete all but the following lines:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\pcAnywhere\CurrentVersion\System]
"TCPIPDataPort"=dword:000015ff
"TCPIPStatusPort"=dword:00001600
9. Save and close the file.
You can use this file both as a template to create .reg files for additional
ports and as the .reg file to restore pcAnywhere to its default port values.
To create a .reg file to change pcAnywhere to a different set of ports:
1. Copy the default .reg file and rename the new copy.
2. Right-click the new .reg file and click Edit.
3. Change the DWORD value for each port.
IMPORTANT: These values are in hexadecimal. You must replace them with
the hexadecimal values of the new port numbers. For assistance with
determining the hexadecimal values, please see the section How to determine
hexadecimal values below.
4. Save and close the file.
Repeat this process for as many hosts or remotes as required.
Example
The default pcAnywhere port numbers are 5631 (DataPort or TCP) and 5632 (StatusPort
or UDP).
The hexadecimal values of these ports are 15FF and 1600, respectively.
You create a new .reg file to change the pcAnywhere ports to 5641 (TCP) and 5642
(UDP).
The hexadecimal values of these ports are 1609 and 160A, respectively.
The contents of a .reg file with these values will look like this:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Symantec\pcAnywhere\CurrentVersion\System]
"TCPIPDataPort"=dword:00001609
"TCPIPStatusPort"=dword:0000160a
To change the port values of pcAnywhere, double-click this file. This imports
the new values into the registry.
Port Matching
A pcAnywhere remote does not necessarily have to be set for the same IP port as
the host. However, some firewalls may be configured so that the pcAnywhere
remote must respond on the same port as the host, otherwise, they will not
connect. In this type of situation, the remotes must match the ports for the
hosts.
Restricting pcAnywhere Ports
You can force a pcAnywhere host or remote to use only the registered ports. To
do this requires a registry change.
1. Click Start, and then click Run. The Run window appears.
2. Type regedit in the Open box and then click OK. The registry
editor opens.
3. Locate and select the following key:
HKEY_LOCAL_MACHINE\Software\Symantec\pcAnywhere\CurrentVersion\System
4. Click Edit, point to New, and then click DWORD value. A new DWORD value
appears in the right frame.
5. Give this value the name TCPIPPortCompatibility and press Enter.
The default data value of this entry is "1". The value "0"
is automatically assigned when you create the new DWORD entry. This is the
correct value to limit pcAnywhere to the registered ports.
A Scenario
You are a remote user and you have three hosts behind a WinRoute firewall that
you need to connect to. Each of those hosts operates on a different set of
ports. In this example, the hosts are StationA, StationB, and StationC.
StationA (using ports 5631/5632)
StationB (using ports 5641/5642)
StationC (using ports 5651/5652)
To connect to these hosts, you need to create three .reg files - one for each
set of ports. In this example, these files are StationA.reg, StationB.reg, and
StationC.reg.
To connect to StationA, double-click the StationA.reg file. If you do this on a
Windows 98 computer, you will be prompted with the following dialog box:

Click yes.
NOTE: Windows 95 and Windows NT 4.0 do not prompt you. They import the
registry file immediately.
When your data is entered into the registry, you see the following:

pcAnywhere on the remote will now connect to any host operating on the ports
5631/5632.
When you need to connect to your host on StationB, you will have to double-click
the StationB.reg file to change your remote to connect to any host operating on
the ports 5641/5642. The same applies to connecting to StationC.
REMEMBER: Ports 5631/5632 are the standard pcAnywhere IP ports. Always
keep a .reg file to restore you to those ports.
How to determine hexadecimal values
Hexadecimal is a 16 based counting system. In the decimal system, we count from
0 (zero) to 9, in the hexadecimal system, we count from 0 (zero) to F. (0, 1, 2,
3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F).
To convert a decimal value to hexadecimal:
1. Click Start, point to Programs, point to Accessories, and then click
Calculator.
2. Click View, and then click Scientific.
3. Click the Decimal radio button.
4. Type the decimal value of the port you want to use. For example, 5631.
5. Click the Hexadecimal radio button. The value is converted. In this case,
5631 is converted to 15FF h. (The "h" indicates that the value is in
hexadecimal format, though this is not needed in the registry).
6. Close the Calculator.