Helix Core Server Administrator Guide: Multi-Site Deployment (2018.2)

Running P4P as a Windows service

To run P4P as a Windows service, either install P4P from the Windows installer, or specify the -s option when you invoke p4p.exe, or rename the P4P executable to p4ps.exe.

To pass parameters to the P4Proxy service, set the P4POPTIONS registry variable using the p4 set command. For example, if you normally run the Proxy with the command:

C:\> p4p -p 1999 -t ssl:mainserver:1666

You can set the P4POPTIONS variable for a Windows service named Helix Proxy by setting the service parameters as follows:

C:\> p4 set -S "Perforce Proxy" P4POPTIONS="-p 1999 -t ssl:mainserver:1666"

When the "Helix Proxy" service starts, P4P listens for plaintext connections on port 1999 and communicates with the Helix Core Server via SSL at ssl:mainserver:1666.