title: .NET Remoting: Cannot connect to remote object in Windows Service except localhost?
body: <p>I created a Window Service and it runs fine in localhost. However, when I install it into a different machine (using my account), my client on the other machine returns "Unable to connect to the remote server". If the client runs on the same machine, it just works fine. I also tried hosting the same remote object in Console app, and it works from remote machine without problem.</p>
  
  <p>This is the code in my service's OnStart():</p>
  
  <pre><code>   HttpChannel channel = new HttpChannel(8080);
      ChannelServices.RegisterChannel(channel, false);
      RemotingConfiguration.RegisterWellKnownServiceType(typeof(MyService), "MyService", WellKnownObjectMode.Singleton);
  </code></pre>
  
  <p>Here is the client code:</p>
  
  <pre><code>       ChannelServices.RegisterChannel(new HttpChannel(), false);
          MyService myService = (MyService)Activator.GetObject(typeof(MyService), "http://xxx.xxx.xxx.xxx:8080/MyService");
  </code></pre>
  
  <p>I found somebody asking this question before on Internet, but no answer. Anybody got clue?</p>