Follow guide on installing Perforce and setting up system startup daemon to ensure that its running as expected.
https://allarsblog.com/2014/09/24/setup-perforce-digital/
Use P4 Set to setup command line
https://www.perforce.com/manuals/v15.1/p4guide/chapter.configuration.html
Update hosts file to allow you to refer to the server by name instead of IP.
https://quickbooks.intuit.com/community/Help-Articles/Edit-Windows-hosts-file/td-p/201406