Automatically set up self-hosted environment server address on desktop app

PS: Answered in Global config for desktop app - #2 by djsmith85