Preparations

Let's first prepare a machine that will be used as the remote server.

Step 1: Prepare a Windows Server 2019 (64-bit) machine.

Obtain the IP address of the machine by executing "ipconfig" in a command prompt window. The IP address used in this guide is 172.16.100.35. You should replace it with the IP address of your own server.

Step 2: Make sure the machine can connect to the following Appeon sites: https://apips.appeon.com, https://apipsoa.appeon.com, https://apips.appeon.net, https://apipsoa.appeon.net, https://apips2.appeon.com, and https://apips2.appeon.net (for activating and validating the PowerServer license).

Note

If the machine connects to Internet through a proxy server, make sure to configure the proxy server settings in the PowerServer Web APIs as well (the ServerAPIs project > Server.json file > "ProxyOptions" block). The password for the proxy server (if any) must be an encrypted value (encrypted by the CustomizeDeploy.dll tool).

Step 3: If firewall is turned on, configure the firewall to allow the port number (81 and 82 in this guide or any port number you choose). The section "Configuring Windows Defender Firewall" has detailed instructions.

Choosing an appropriate port number

It is very important that the port number to be used by the IIS website is not occupied by any other program. You can verify by the following steps:

Step 1: On the server machine, run the command prompt as an administrator.

Step 2: Execute the following command to find out if a port number is used by any program.

netstat -ano | findstr portnumber

If the command prompt returns no information, it means the port number is not occupied by any program, as shown in the figure below.


If the command prompt returns information, it means the port number is being used. For example, the process (whose PID is 4) is currently using the port number 81, as shown in the following figure. The last column shows the ID of the process that uses the port number.


If the port number is being used, you will have to choose another port number (and use the netstat command to make sure it is not used); or you can go to the task manager, find the process that is currently using the port number according to the PID and terminate the process to release the port number. But notice that you may not be able to terminate a system process. In that case, you can only choose a different port number.