For the p4d server, the port number to listen on.
For the p4 client, the name and port number of the p4d host to communicate with.
Used by p4 client? |
Used by p4d server? |
Command-Line Alternative | Can be set in P4CONFIG file? |
---|---|---|---|
Yes | Yes | p4 -p host:port# cmd | Yes |
The format of P4PORT on the p4 client is host:port#, or port# by itself if the p4 client and the p4d server are running on the same host.
To use the default value, perforce, with p4d, define perforce as an alias to the host in /etc/hosts on UNIX, or use the domain name services.
Port numbers must be in the range 1024 - 31767.