Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
P4PASSWD
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4ROOT

P4PORT


Description

For the Perforce server, the port number to listen on.

For Perforce clients, the host and port number of the Perforce server to communicate with.

Usage Notes

Used by
Perforce Client?

Used by
Perforce 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 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.

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 NT, or use DNS.

Port numbers must be in the range 1024 through 32767.


Perforce 2000.2 Command Reference (2000.2.cr.1)
<< Previous Chapter
P4PASSWD
Table of Contents
Index
Perforce on the Web
Next Chapter >>
P4ROOT
Please send comments and questions about this manual to [email protected].
Copyright 1997, 2000 Perforce Software. All rights reserved.
Last updated: 12/21/00