Perforce 2005.1 User's Guide | ||
<< Previous Chapter Product Overview |
Table of Contents Index Perforce on the Web |
Next Chapter >> Perforce Basics: Quick Start |
The following programs do the bulk of Perforce's work:
If this is not the case (for instance, if you're installing Perforce for the first time), you must install the Perforce server before continuing. For an overview of how to set up a server, see "Installing Perforce" on page 143.
The installation information in this manual is intended to help you install a server for evaluation purposes. If you're installing a production server, or are planning on extensive testing of your evaluation server, read the full installation instructions in the System Administrator's Guide.
To connect to a Perforce server, specify the host and port number by setting the P4PORT environment variable to host:port, where host is the name of the host on which the p4d server is running, and port is the port on which the p4d server is listening.
If the server is running on... |
and is listening to port... |
set P4PORT to: |
---|---|---|
dogs |
3435 |
dogs:3435 |
x.com |
1818 |
x.com:1818 |
For information about setting environment variables for most operating systems and shells, see "Setting and viewing environment variables" on page 148.
If your site is already using Perforce, your system administrator might have already set P4PORT for you; if not, you'll need to set P4PORT yourself.
If your Perforce client program is running on the same host as the server, you can omit the host and specify only the port number. If the Perforce server is listening to the default port 1666, you need only specify the host name in P4PORT. If the Perforce server is running on a host named or aliased perforce, and is listening on the default port 1666, the definition of P4PORT for the p4 client can be dispensed with altogether.
If the server is running on... |
and is listening to port... |
set P4PORT to: |
---|---|---|
<same host as the p4 client> |
1543 |
1543 |
perforce |
1666 |
<no value needed> |
The Server address: field shows the Perforce server to which p4 has connected, as well as the host and port number on which p4d is listening.
In the above example, the connection was successfully tested. If you receive an error message like this:
Perforce client error: |
then the p4 client program failed to connect to p4d, either because the Perforce server wasn't running, or because your setting for P4PORT was incorrect.
If the value shown in the third line of the error message is perforce:1666 (as above), then P4PORT was unset; if the value is anything else, P4PORT was incorrectly set. In either case, you must change the value of P4PORT to point to your Perforce server.
Perforce system administrators should consult the System Administrator's Guide for details on how to determine what type of authentication is best for the users at your site.
Perforce 2005.1 User's Guide | ||
<< Previous Chapter Product Overview |
Table of Contents Index Perforce on the Web |
Next Chapter >> Perforce Basics: Quick Start |