title: Why does my .NET Remoting target machine actively refuse the connection?
body: <p>I am trying to establish a basic .NET Remoting communication between 2x 64bit windows machines. If Machine1 is acting as client and Machine2 as server, then everything works fine. The other way around the following exception occurs:</p>
  
  <p>System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 172.16.7.44:6666</p>
  
  <p>The server code:</p>
  
  <pre><code>TcpChannel channel = new TcpChannel(6666);
  ChannelServices.RegisterChannel(channel);
  RemotingConfiguration.RegisterWellKnownServiceType(
    typeof(MyRemotableObject),"HelloWorld",WellKnownObjectMode.Singleton);
  </code></pre>
  
  <p>The client code:</p>
  
  <pre><code>TcpChannel chan = new TcpChannel();
  ChannelServices.RegisterChannel(chan);
  // Create an instance of the remote object
  remoteObject = (MyRemotableObject)Activator.GetObject(
    typeof(MyRemotableObject), "tcp://172.16.7.44:6666/HelloWorld");
  </code></pre>
  
  <p>Any idea whats wrong with my code?</p>