Trying to connect helix perforce cloud through P4 Client, getting below error.
C:\Users\sagaraa>p4 -Cauto -p
ssl:TestContinuousDelivery.sagaraagre.helix.perforce.com:1667 trust
Perforce client error:
Connect to server failed; check $P4PORT.
No such host is known.
Please note that I am working behind company proxy, so not sure that could be the issue. Outside company premise it is working perfectly fine. Please advice if any one is facing similar issue, or have any resolution.
When running command p4 set gives below output:
P4EDITOR=C:\Windows\SysWOW64\notepad.exe (set)
P4PORT=perforce:1666 (set)
P4USER=sagaraagre (set)
For your P4PORT value, perforce is the server's hostname and 1666 is the port number.
If you ping that server I bet it won't find the host either:
C:\Windows\System32>ping perforce
Ping request could not find host perforce. Please check the name and try again.
If that's the case for you, you can either use the actual hostname or IP address for your Perforce server in P4PORT:
C:\Windows\System32>p4 set P4PORT=TestContinuousDelivery.sagaraagre.helix.perforce.com:1666
Or, if you're set on using perforce there, you can add it as an alias in your hosts file:
C:\Windows\System32>echo 1.2.3.4 TestContinuousDelivery.sagaraagre.helix.perforce.com perforce >> drivers\etc\hosts
1.2.3.4 would be the IP address corresponding to TestContinuousDelivery.sagaraagre.helix.perforce.com, and you can always ping that hostname to find the IP.
As an aside, there does seem to be an ongoing issue where p4 set's P4PORT doesn't keep in sync with .p4qt\connectionmap.xml's P4Port value. Resetting P4PORT, like what was done above, is one way to resolve that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With