Search code examples
perforcep4v

Connecting to Perforce Personal Server on Lan


I have created a Personal Server using the P4V "Helix Client" on my Windows 10 workstation at home.

enter image description here

I would like to be able to connect to this server from my laptop on the LAN so that I can pull from it. (To make sure that everything that is required for the project is correctly in the repository, and testing)

Should I be able to connect to this server using the workstations IP address and port 1666?

Is there an additional step I need to take to "serve" the repository?


Solution

  • A "personal server" doesn't listen on the network by default (the client spawns a short-lived server process in place each time it runs a command).

    To convert your personal server into a shared server, install the Perforce service (this'll be part of the server installer on Windows) and set its server root directory to match the path you gave your personal server.

    Alternatively, you can go to a command prompt and run:

    p4d -r Z:\Core\.p4root -p 1666
    

    but that server will only be up and listening for as long as that command prompt is open, whereas the service (p4s.exe) will run in the background.