Start up the command line client and verify the connection to the server
-
Start up the command line client:
$ p4
-
To verify a connection, issue the
p4 infocommand. IfP4PORTis set correctly, information like the following is displayed:CopyUser name: bruno
Client name: bruno_ws
Client host: computer_12
Client root: c:\bruno_ws
Current directory: c:\bruno_ws
Peer address: 10.0.102.24:61122
Client address: 10.0.0.196
Server address: ssl:example.com:1818
Server root: /usr/depot/p4d
Server date: 2020/09/28 15:03:05 -0700 PDT
Server uptime: 752:41:33
Server version: P4D/FREEBSD/2012.1/406375 (2020/08/25)
ServerID: London-commit1
Server license: P4Admin <p4adm> 20 users (expires 2021/01/01)
Server license-ip: 10.0.0.2
Case handling: sensitiveThe
Server addressfield shows the host to whichp4connected and also displays the host and port number on which the P4 Server is listening. IfP4PORTis set incorrectly, you receive a message like the following:Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to perforce:1666 failed.
perforce: host unknown. - If the host:port value is
perforce:1666,P4PORThas not been set. SetP4PORTand try to connect again. - If your installation requires SSL/TLS, make sure your
P4PORTis of the formssl:.hostname:port - You will be asked to verify the server’s fingerprint the first time you
attempt to connect to the server. If the fingerprint is accurate, use the
p4 trustcommand to install the fingerprint into a file (pointed to by theP4TRUSTenvironment variable) that holds a list of known/trusted P4 Server and their respective fingerprints. IfP4TRUSTis unset, this file is.p4trustin the user’s home directory. For more information, see SSL/TLS-encrypted connections. - If your installation requires plain text (in order to support older
P4 Server
applications), set
P4PORTtotcp:.hostname:port