P4HOST

Name of host computer to impersonate.

Usage Notes

Used by Client? Used by Server? Command-Line Alternative Can be set in P4CONFIG file?

Yes

No

p4 -H hostname command

Yes

Value if not Explicitly Set

Operating System Value

All

The value of the client hostname as returned by p4 info.

Examples

workstation123.perforce.com

Notes

Helix Server users can use the Host: field of the p4 client form to specify that a particular client workspace can be used only from a particular host machine. When this field has been set, the P4HOST variable can be used to fool the service into thinking that the user is on the specified host machine regardless of the machine being used by the user. As this is a very esoteric need, there’s usually no reason to set this variable.

The hostname must be provided exactly as it appears in the output of p4 info when run from that host.