I am using remoting to talk between separate apps *on the same machine*;
currently my server startup code is as below, but it throws the XP firewall
warning dialog. Since I only need to connect locally, is there any way of
preventing this - i.e. can I tell it that I only want to accept local
connections? RemoteAgent is my shared type; the string in App is an alias to
the service.
Thanks in advance,
Marc
public static bool StartServer() {
try {
if (ChannelServices.GetChannel("http") == null) {
ChannelServices.RegisterChannel(new HttpChannel(Port),
false);
}
WellKnownServiceTypeEntry serviceType = new
WellKnownServiceTypeEntry(typeof(RemoteAgent), App,
WellKnownObjectMode.Singleton);
RemotingConfiguration.RegisterWellKnownServiceType (serviceType);
return true;
} catch (System.Net.Sockets.SocketException) {
return false; // server already running
}
}