Re: [p4] P4HOST issues
Sambwise <[email protected]> Tue, 27 Mar 2018 13:55:01 -0700
| Newsgroups | gmane.comp.version-control.perforce |
|---|---|
| Message-ID | <[email protected]> |
Posted on behalf of forum user 'Sambwise'. [https://forums.perforce.com/index.php?app=forums&module=forums§ion=findpost&pid=23221] Matt Janulewicz, on 2018/03/27 18:19:09 UTC, said: > but one other instance that you might want to do that is if you're on a VPN that doesn't handle hostnames right (all of them) and you find your localhost value changes every time you connect. You do not want to use the same workspace from different PC's/Macs, and you don't want to connect to a different server from the same workspace, either. > IMO the most sanity-friendly way to handle this is to set P4HOST on your machine (just once, using plain old "p4 set", doesn't even matter what you set it to as long as it's somewhat unique to that machine), and use that for all of your workspaces everywhere. I seem to remember at one point our network config changed all our hostname, so I just set P4HOST equal to my old hostname to let Perforce (across every server I used, which was at least a dozen) know that I was really still the same client host machine. There's no reason you should ever need to use different P4HOSTS across different connections IMO. Your client hostname should be the same regardless of what server you connect to (and if it isn't due to network weirdness, you should be able to pretend that it is and have everything still work just fine). The most reasonable exception I can think of would be where your workspace is network-mounted (or on a thumbdrive or in Dropbox or whatever) so that you are actually using the same physical workspace from different client hosts. In that case (and only in that case) I'd define P4HOST in my P4CONFIG file that lives on that same shared filesystem, and I'd name it something like "samwise-dropbox-host" to make it clear that this is the "client host" corresponding to my Dropbox folder or what have you rather than to a single physical client machine. -- Please click here to see the post in its original format: http://forums.perforce.com/index.php?/topic/5668-p4host-issues _______________________________________________ perforce-user mailing list - [email protected] http://maillist.perforce.com/mailman/listinfo/perforce-user