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

C/C++ API Documentation | 2025.1

# P4 Server settings on the user’s machine

To determine which server and depot are accessed and how files are mapped, the standard classes in the API observe the P4 Server settings on the user’s machine. Assuming the workstation is configured correctly, your application does not need to provide logic that specifies server, port, workspace, or user.

To override the user’s settings, your application can call `Set` methods.

Settings take precedence as follows, highest to lowest:

1. Values set within a P4 Server application
2. Values in configuration files (`P4CONFIG`)
3. Values set as environment variables at the operating system prompt
4. Variables residing in the registry (set using the `p4 set` or `p4 set -s` commands on Windows client machines)
5. Default values defined by P4 Server or gathered from the system

Your search for returned results