[p4] Two instances of p4p on the same machine.
g.whitfield at computer.org
Wed Nov 22 11:24:13 PST 2006
Hi Tony - I'm still here!
Here's what to do to install multiple P4 Proxies on a Windows box culled
from the admin guide I wrote while at EA. Apologies for the formatting - the
original doc was in Word.
Setting up a new proxy on an existing proxy server
The following steps describe how to set up multiple proxy services on one
server, which saves having to have a dedicated machine per proxy.
1. Create a folder on the server machine that will be the proxy cache.
2. From an existing proxy folder cache, copy the following files:
3. Run a command prompt in the cache folder.
4. Run "svcinst create -n <Name for Proxy> -e <path to p4ps.exe> -a
5. Run regedit, and locate
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Name for Proxy>
6. Create a new key "Parameters".
7. Set the following string values in the new key:
b. P4PCACHE=<folder name for new cache folder created in (1)>
c. P4PORT=<port that Proxy will show itself on>
d. P4TARGET=<Perforce server that this is a proxy of>
8. Run Services, and start the new service (or use "Net Start <Name for
A suggested naming convention for the service is:
"P4 Proxy <label of destination"
For example, "P4 Proxy Teal" is the proxy of the Vancouver based Teal
I also recommend that the service description should be set to contain both
the proxy port and a description of the destination - it makes tracking down
which proxies are doing what much easier.
There may well be an easier way to do this now - I have not checked recent
releases of the P4Proxy installer. I would have thought it would be easy for
Perforce to add this kind of capability to the installer - ditto for the the
main server come to think of it.
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Sweeney, Tony
Sent: 22 November 2006 16:18
To: Raghu Kumar C; perforce-user at perforce.com
Subject: Re: [p4] Two instances of p4p on the same machine.
this is possible, we apparently have this running in-house.
However, I didn't set it up, and my spies tell me this involved some
registry hacking on Windows. If Greg Whitfield is still subscribed to the
list, he may be able to supply the details. Alternatively, I may be able to
grub through the registry on the machine on which we have multiple proxies
configured and let you know which knobs to twiddle.
quis custodiet ipsos custodes -- Juvenal VI, 347-8
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Raghu Kumar C
> Sent: 22 November 2006 14:55
> To: perforce-user at perforce.com
> Subject: [p4] Two instances of p4p on the same machine.
> Is it possible to configure two instances of p4p on the same
> I am trying to set two proxies; one for our internal server and
> another for to connect to my Client's server. I am using Win 2000 as
> my server machine.
> What would my P4PORT environment variable be?
> Any help would be highly appreciated.
> Thank you,
> perforce-user mailing list - perforce-user at perforce.com
perforce-user mailing list - perforce-user at perforce.com
More information about the perforce-user