.NET Remoting与双网卡

    今日将Remoting服务端搬到一台双网卡的服务器上启动,结果客户端无法Remoting连接到服务器,经过探索,发现Remoting服务绑定到了内网网卡的地址,解决办法很简单,只需要在Channel配置项中将useIpAddress属性设置为false,如:

    <channels>
        
<channel ref="tcp" port="9000" useIpAddress="false">
          
<serverProviders>
            
<provider ref="wsdl" />
            
<formatter ref="soap" typeFilterLevel="Full" />
            
<formatter ref="binary" typeFilterLevel="Full" />
          
</serverProviders>
          
<clientProviders>
            
<formatter ref="binary" />
          
</clientProviders>
        
</channel>
      
</channels>


posted @ 2007-09-21 23:34  zhuweisky  阅读(2238)  评论(5编辑  收藏  举报