Identifying the client during a .NET remoting invocation

One of the things you can do is identify a client by IP address by implementing an IServerChannelSinkProvider. Add this class to your remoting host project: ClientIPServerSinkProvider.cs using System; using System.Collections; using System.IO; using System.Runtime.Remoting; using System.Runtime.Remoting.Messaging; using System.Runtime.Remoting.Channels; using System.Threading; using System.Net; namespace MyRemotingEnvironment { public class ClientIPServerSinkProvider : IServerChannelSinkProvider { private IServerChannelSinkProvider _nextProvider … Read more

Is .NET Remoting really deprecated?

Calling it a legacy technology is a more accurate description. http://msdn.microsoft.com/en-us/library/72x4h507%28VS.85%29.aspx This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the Windows Communication Foundation (WCF). Update: WCF doesn’t distinguish between inter/intra/process/inter/intra-appdomain. If you … Read more

Usage of AppDomain in C#

The single most important use is that your code has to have one – i.e. everything you write in C# executes in an AppDomain. That is quite important ;-p If you mean additional app-domains: When using plugins and other untrusted code, it allows you both isolation, and the ability to unload them (you can’t unload … Read more

Remote Connections Mysql Ubuntu

To expose MySQL to anything other than localhost you will have to have the following line For mysql version 5.6 and below uncommented in /etc/mysql/my.cnf and assigned to your computers IP address and not loopback For mysql version 5.7 and above uncommented in /etc/mysql/mysql.conf.d/mysqld.cnf and assigned to your computers IP address and not loopback #Replace … Read more