fixed bug in config_client when giving custom port