Perforce 2005.1 Command Reference
<< Previous Chapter
P4POPTIONS
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4ROOT

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?

Command-Line Alternative
Can be set in P4CONFIG file?

Yes

Yes

p4 -p host:port cmd

Yes

Value if not Explicitly Set

Program
Value

Perforce server

1666

Perforce proxy

1666

Perforce client

perforce:1666

Examples

Perforce client examples
Perforce server examples

1818

1818

squid:1234

1234

perforce.squid.com:1234

1234

192.168.0.123:1818

1818

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.

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.

Port numbers must be in the range 1024 through 32767.


Perforce 2005.1 Command Reference
<< Previous Chapter
P4POPTIONS
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4ROOT
Please send comments and questions about this manual to [email protected].
Copyright 1999-2005 Perforce Software. All rights reserved.
Last updated: 05/12/05