pcAnywhere IP port usage

You want to configure a firewall to allow pcAnywhere connections, and you need to know which IP ports pcAnywhere uses.

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:

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:


How to change the pcAnywhere IP ports

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.

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:

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:
Repeat this process for as many hosts or remotes as required.


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:



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.

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.

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: