Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 CLI Documentation | 2025.1

# Verify the connection to the server

To verify a connection, run the `p4 info` command.

    p4 info

If `P4PORT` is set correctly, information like the following is displayed, including the `Server address` field, which shows (line 3) the host to which `p4` connected and also the host and port number on which the P4 Server is listening (line 8).

Copy

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    User name: bruno
    Client name: dhcp-133-n101
    Client host: dhcp-133-n101.dhcp.perforce.com
    Client unknown.
    Current directory: /Users/bruno/tutorial
    Peer address: 127.0.0.1:49917
    Client address: 127.0.0.1
    Server address: localhost:1666
    Server root: /Users/bruno/server
    Server date: 2025/01/17 10:31:21 -0800 Pacific Standard Time
    Server uptime: 00:03:26
    Server version: P4D/NTX64/2024.2/2675662 (2024/10/31)
    Server license: none
    Case Handling: insensitive

If `P4PORT` is set incorrectly, a message like the following appears:

    Perforce client error:
       Connect to server failed; check $P4PORT.
       TCP connect to perforce:1666 failed.
       perforce: host unknown.

If you get the "host unknown" error, contact your administrator.

Your search for returned results