求教高手,问题如下:A  机 系统  win7B  机  系统  win2003   是用了Virtual Box 虚拟出来的,寄宿于A机C  机  系统   winxp
我用Remoting 进行数据调用, 
1、 A  机  与 B 机之间没有任何问题,通信很正常,相互都能调用数据。2、 A  机 与 C 机, A能正常调用C的数据, C 不能调用调用A 的数据。C机 出现假死,然后连接超时报错:连接方在一段时间内没有正确答复。。请问这个问题怎么解决? 或者原因是什么呢?如果是防火墙问题,奇怪的是 我的程序能够在A 与C 之间相互进行UDP广播消息。

解决方案 »

  1.   

    呵呵,自己把问题解决了,如果后面有人还有类似问题可以参考一下:
      IDictionary tcpProperties = new Hashtable();
                        tcpProperties["name"] = "tcpBinary ";
                        tcpProperties["port"] = int.Parse(SrvChannel);
                        tcpProperties["rejectRemoteRequests"] = false;
                        // tcpProperties["bindTo "]  =                   // 外网IP;                    //注:使用IP地址绑定时将无法使用其它IP地址连接  /
                        BinaryClientFormatterSinkProvider tcpClientSinkProvider = new BinaryClientFormatterSinkProvider();
                        BinaryServerFormatterSinkProvider tcpServerSinkProvider = new BinaryServerFormatterSinkProvider();
                        tcpServerSinkProvider.TypeFilterLevel = TypeFilterLevel.Full;
                        
                        TcpChannel channel = new TcpChannel(tcpProperties, tcpClientSinkProvider, tcpServerSinkProvider);  
    改用以上代码初始化Tcpchannel后,就可以相互下载数据了。