P4 Port refers to the host and port name that perforce is located on.
Example: perforce.com:1666.
The path to p4 should be the location of p4.exe.
On windows, likely: C:\\Program Files\\Perforce\\p4.exe
On *nix, likely: p4 or /usr/local/bin/p4