Perforce 99.2 Command Line User Guide (99.2.ug.2) | ||
<< Previous Chapter Perforce Concepts |
Table of Contents Glossary Perforce on the Web |
Next Chapter >> Perforce Basics: Quick Start |
Two programs do the bulk of Perforce's work:
These are set via a single environment variable, P4PORT. It is possible that your system administrator has already set P4PORT; if not, you'll need to set it yourself.
To verify the connection, type p4 info at the command line. If the P4PORT environment variable is correctly set, you'll see something like this:
The server address: field shows which p4d server has been connected to; it displays the host and port number that p4d is listening on.
In the above example, everything is fine. If, however, you receive a variant of this message:
Error: |
then P4PORT has not been correctly set. If the value you see in the third line of the error message is perforce:1666 (as above), then P4PORT has not been set at all; if the value is anything else, P4PORT has been incorrectly set. In either case, you'll need to set the value of P4PORT.
95/98/NT |
On Windows 95 and NT, registry variables are preferred over environment variables, and you can set these with command p4 set. |
If the p4d host is named... |
and the p4d port is named... |
set P4PORT to: |
---|---|---|
dogs |
3435 |
dogs:3435 |
x.com |
1818 |
x.com:1818 |
The definition of P4PORT can be shortened if p4 is running on the same host as p4d. In this case, only the p4d port number need be provided to p4. And if p4d is running on a host named or aliased perforce, listening on port 1666, the definition of P4PORT for the p4 client can be dispensed with altogether. For example::
If the p4d host is named... |
and the p4d port is named... |
set P4PORT to: |
---|---|---|
<same host as the p4 client> |
1543 |
1543 |
perforce |
1666 |
<no value needed> |
When P4PORT has been set, you should re-verify the connection with p4 info, as described above. Once this has been done, Perforce is ready to use.
Perforce 99.2 Command Line User Guide (99.2.ug.2) | ||
<< Previous Chapter Perforce Concepts |
Table of Contents Glossary Perforce on the Web |
Next Chapter >> Perforce Basics: Quick Start |