When you run P4P under the "Perforce Proxy" service, the Proxy will listen to port 1999 and communicate with the Perforce Server at
mainserver:1666.
Most installations do not need to use P4POPTIONS, because there are already environment variables associated with most
p4p flags; in the example shown above, you can use
P4PORT and
P4TARGET. Use
P4POPTIONS when you need to call
p4p with flags for which there are no corresponding environment variables, and when you are doing so within the context of a Windows service.