title: Signalr unable to connect the remote server
body: <p>So, I installed signalr library and everything work wonderful except remote connection.
  My client easily has connected to the server locally but when i try to connect remotely i get the next error: <strong>unable to connect the remote server.</strong></p>
  
  <blockquote>
    <p>Firewall if off</p>
  </blockquote>
  
  <p><strong>StartUp.cs</strong></p>
  
  <pre><code>[assembly: OwinStartup(typeof(PushNotifier.StartUp))]
  namespace PushNotifier
  {
   public class StartUp
   {
    public void Configuration(IAppBuilder appBuilder)
    {      
     appBuilder.Map("/signalr", map =&gt;
      {
       var hubConfiguration = new HubConfiguration
        {
         EnableDetailedErrors = true,
        };
       map.UseCors(CorsOptions.AllowAll);
       map.RunSignalR(hubConfiguration);
      });
    }
   }
  }
  </code></pre>
  
  <p><strong>Program.cs</strong></p>
  
  <pre><code>  public static void Main(string[] args)
    {
     try
     {
      using (WebApp.Start("http://*:8734"))
      {
       while (true)
       {
        var pressedKey = Console.ReadKey(true).Key;
  
        switch (pressedKey)
        {
         case ConsoleKey.P:
          {
           var hubEntity = new HubEntity();
           hubEntity.SendNotification("hidden", JsonConvert.DeserializeObject&lt;VersionEntity&gt;(FileHelper.OpenFile(filePath)).Version);           
          }
          break;
  
         case ConsoleKey.Escape:
          return;
        }
       }
      }
     }
     catch (Exception ex)
     {
      MessageBox.Show(ex.Message + "|" + ex.StackTrace);
     }
    }
  </code></pre>
  
  <p><strong>Client.cs</strong></p>
  
  <pre><code> var connection = new HubConnection("http://10.0.0.18:8734/signalr");
  
     var hubProxy = connection.CreateHubProxy("HubEntity");
  
     hubProxy.On&lt;string, string&gt;("addMessage", (message, version) =&gt;
      {
       try
       {
        Console.WriteLine("Connected");
       }
       catch (Exception ex)
       {
        MessageBox.Show(ex.Message);
       }
      });
  
     try
     {
      await connection.Start();
     }
     catch (Exception ex)
     {
      MessageBox.Show(ex.Message, string.Empty, MessageBoxButton.OK, MessageBoxImage.Error);
      Application.Current.Shutdown();
     }
  </code></pre>