Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.2

# 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

P4 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.

Your search for returned results