IDictionary tcpProperties = new Hashtable();     
  tcpProperties["name"]  =   "tcpBinary";     
  tcpProperties["port"]   =   8888;     
  tcpProperties["rejectRemoteRequests"]   =   false;     
  tcpProperties["bindTo"]   =   外网IP;   //注:使用IP地址绑定时将无法使用其它IP地址连接     
  BinaryClientFormatterSinkProvider   tcpClientSinkProvider   =   new   BinaryClientFormatterSinkProvider();     
  BinaryServerFormatterSinkProvider   tcpServerSinkProvider   =   new   BinaryServerFormatterSinkProvider();     
  tcpServerSinkProvider.TypeFilterLevel   =   TypeFilterLevel.Full;     
  TcpChannel   tcpChannel   =   new   TcpChannel(tcpProperties,tcpClientSinkProvider,tcpServerSinkProvider);