P4TARGET

  • For the P4 Proxy and replica servers, the name and port number of the target P4 Server (that is, the P4 Server for which P4P acts as a proxy).
  • For a replica or edge server, the upstream master or commit server from which it retrieves its data, and towards which changelists, if applicable, are forwarded.

Usage notes

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

No

Yes

p4p -t host:port
p4d -t host:port

N/A

Value if not explicitly set

Program Value

P4 Proxy

perforce:1666

Replicated environments

None

Examples

P4 Server server examples

1818

master:11111

perforce.example.com:1234

192.168.0.123:1818

Notes

The format of P4TARGET is host:port, or port by itself if both the P4 Server and the proxy, replica, or edge server are running on the same host.

Port numbers must be in the range 1024 through 32767.

For more about replicas, edge servers, and the P4 Proxy, see Deployment architecture in the P4 Server Administration Documentation.