私はリモートサーバーとクライアントを構築しました。サーバーは、次のような設定されている:リモート接続によるTCP
BinaryServerFormatterSinkProvider serverProv =
new BinaryServerFormatterSinkProvider();
serverProv.TypeFilterLevel = TypeFilterLevel.Full;
BinaryClientFormatterSinkProvider clientProv =
new BinaryClientFormatterSinkProvider();
IDictionary props = new Hashtable();
props["port"] = port;
TcpChannel channel = new TcpChannel(props, clientProv, serverProv);
ChannelServices.RegisterChannel(channel, false);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(Controller),
"Controller", WellKnownObjectMode.Singleton);
クライアントがように設定されています
ChannelServices.RegisterChannel(new TcpChannel(0), false);
m_Controller = (Controller)RemotingServices.Connect(typeof(Controller),
"tcp://" + ip + ":2594/Controller");
私は、ローカルホスト」として指定されたIPと同じコンピュータからサーバーに接続しようとすると、それは結構です。私は、リモートコンピュータからではなく、LAN上で接続しようとするただし、サーバーのIPアドレスを与え、私は長い待ち時間の後に、クライアント上で次の例外を受け取る:
A connection attempt failed because the connected party did not properly
respond after a period of time
は、どのように私はこの問題を解決することができますか?ポートがサーバー上で正しく転送され、ファイアウォールがアクティブでないため、構成上の問題であると確信しています。
ありがとうございます。
前にこの質問をしています表示されます:私はこのすべてをチェックしましたし、それが正常に見えるhttp://stackoverflow.com/questions/719425/remoting-objects-and-remote-connections –