I need to get the IP address of the client calling a function over a .NET Remoting TcpChannel. I found this post which seems to be exactly what I need, however, I am not sure how to implement this using the app.config file, which is a requirement for my project. I cannot find any good documentation on MSDN on how exactly the app.config file works in this case, likely because .NET Remoting is a legacy technology. Is there anybody who knows how I can implement the configuration code in the second section of Kev’s answer using the app.config file?
Many thanks in advance for any help with this.
This answer worked wonders for me. I was able to implement this in the app.config file as follows:
I added the entire serverProviders element to the tcp channel, and added the entire channelSinkProviders element you see. Everything else was already there as an existing configuration we already had.