hotfixing bug where client-side config was incorrectly set up if port isn't being used