Ensure we can parse domain and port