Previous Table of Contents Index Next
Perforce 2009.2: Command Reference



P4PORT
Description
For the Perforce server, and Perforce Proxy, the port number on which it listens.
For Perforce clients, the host and port number of the Perforce server or proxy with which to communicate.
Usage Notes
Used by
Client?
Used by
Server?
Can be set in P4CONFIG file?
p4 -p host:port cmd
Value if not Explicitly Set
Examples
Notes
The format of P4PORT on the Perforce client is host:port, or port by itself if both the Perforce client and server are running on the same host. Port numbers must be in the range 1024 through 32767.
If you specify both an IP address and a port number in P4PORT, the Perforce server ignores requests from any IP addresses other than the one specified in P4PORT.
To use the default value perforce with a Perforce server, define perforce as an alias to the host running the server in /etc/hosts on UNIX, or in %SystemRoot%\system32\drivers\etc\hosts on Windows, or use DNS.
If your network environment and Perforce Server have been configured to support Zeroconf services, you can set P4PORT to the value of the service name.


Previous Table of Contents Index Next

Perforce 2009.2: Command Reference
Copyright 1999-2009 Perforce Software.