Perforce Command Reference:   [Index]  [Prev] [Next]


P4PORT

Description

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.

Usage Notes

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

Value if not Explicitly Set

Program Value
p4 server 1666
p4d client perforce:1666

Examples

p4 Client Examples p4d Server Examples
squid:1666 1543
ida.com:1308 1818

Notes

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.



Perforce Command Reference:   [Index]  [Prev] [Next]


Copyright 1998 Perforce Software.
Contact us at [email protected]
Last updated: 06/14/98