Use AsyncHttpProviderUtils.getHost/getPort (avoids -1 for default port problem)