服务器如下:ChannelServices.RegisterChannel( new TcpServerChannel( 端口号));

RemotingConfiguration.RegisterWellKnownServiceType( typeof( RemotingPortal ), "RemotingPortal", WellKnownObjectMode.SingleCall );客户端如下:
SysConstant.uncdb = (RemotingPortal)System.Activator.GetObject( typeof(RemotingPortal),服务器IP + 端口号+ "RemotingPortal" );