公司内最近做一个C/S项目,需要分布式查询数据库,用的Remoting技术
在公司内部也就是路由器下测试成功,但穿上公司的服务器上就失败说,目标服务器积极拒绝
请问事怎么回事。用的是App.config注册的
这是服务器的注册代码
<configuration>
  <system.runtime.remoting>
    <application >
      <service>
        <wellknown type="Scdaze.ShareCalendar.RemotingObject.RemotingMethod,Scdaze.ShareCalendar.RemotingObject"
                   objectUri="RemotingMethod"
            mode="SingleCall" />
        <!--<wellknown type="Scdaze.ShareCalendar.Models.Message,Scdaze.ShareCalendar.Models" objectUri="Message"
            mode="SingleCall" />-->
      </service>
      <channels>
        <channel ref="tcp" port="8080"/>
        <serverProviders>
          <provider ref="wsdl" />
          <formatter ref="soap" typeFilterLevel="Full" />
          <formatter ref="binary" typeFilterLevel="Full" />
        </serverProviders>
    
      </channels>
     
    </application>
  </system.runtime.remoting>
</configuration>这是客户端的
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.runtime.remoting>
    <application>
      <channels>
        <!--设置管道类型和端口-->
        <channel ref="tcp"/>
      </channels>
      <client>        <wellknown type="Scdaze.ShareCalendar.RemotingObject.RemotingMethod,Scdaze.ShareCalendar.RemotingObject"
                   url="tcp://61.188.37.208:8080/RemotingMethod">
        </wellknown>
      </client>    
    </application>
  </system.runtime.remoting>
  
</configuration>
后台都是这么注册的
 String configfile = "SandBoxServer.exe.config";
            RemotingConfiguration.Configure(configfile,false);如果将客户端的Url改成路由器的IP就可以通过
请问事怎么回事啊,是不是传上外网需要其他什么,急