title: failed to connect to all addresses exception when trying to connect GRPC server from a winforms app
body: <p>Hello grpc newbie here,</p>
  <p>I've a winforms application that I want to connect to a grpc server.</p>
  <p>I have no problem running the grpc server on localhost and make a connection to it with the winforms app.</p>
  <p>I've deployed my grpc server to a temporary url : <a href="http://mujf94-001-site1.gtempurl.com/" rel="nofollow noreferrer">http://mujf94-001-site1.gtempurl.com/</a></p>
  <p>but when I try to connect it I get the following error:</p>
  <pre><code>Status(StatusCode=&quot;Unavailable&quot;, Detail=&quot;failed to connect to all addresses&quot;, 
  DebugException=&quot;Grpc.Core.Internal.CoreErrorDetailException: 
  {&quot;created&quot;:&quot;@1630271164.373000000&quot;,&quot;description&quot;:&quot;Failed to pick 
  subchannel&quot;,&quot;file&quot;:&quot;..\..\..\src\core\ext\filters\client_channel\client_channel.cc&quot;,
  &quot;file_line&quot;:3009,&quot;referenced_errors&quot;:[{&quot;created&quot;:&quot;@1630271164.373000000&quot;,&quot;description&quot;:
  &quot;failed to connect to all addresses&quot;,&quot;file&quot;:&quot;..\..\..\src\core\ext\filters\client_channel\
  lb_policy\pick_first\pick_first.cc&quot;,&quot;file_line&quot;:398,&quot;grpc_status&quot;:14}]}&quot;)
  </code></pre>
  <p>This is how I try connecting to the grpc server:</p>
  <pre><code>        var ip = &quot;mujf94-001-site1.gtempurl.com&quot;.ToIPAddress();
  
          var channel = new Channel(ip.ToString(),80, ChannelCredentials.Insecure);
  
          //var channel = new Channel(&quot;http://mujf94-001-site1.gtempurl.com&quot;, 80, ChannelCredentials.Insecure);
  
          Client = channel.CreateGrpcService&lt;T&gt;();
  </code></pre>
  <p>and my grpc server options are like this:</p>
  <pre><code>public static IHostBuilder CreateHostBuilder(string[] args) =&gt;
          Host.CreateDefaultBuilder(args)
              .ConfigureWebHostDefaults(webBuilder =&gt;
              {
                  AppContext.SetSwitch(&quot;System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport&quot;, true);
                  webBuilder.ConfigureKestrel(options =&gt;
                  {
                      options.Listen(&quot;mujf94-001-site1.gtempurl.com&quot;.ToIPAddress(), 80, o =&gt; o.Protocols = HttpProtocols.Http2);
                  });
                  webBuilder.UseStartup&lt;Startup&gt;();
              });
  </code></pre>
  <p>I'm very new to this so any help is very appreciated</p>