I need to have a list of computers (i think IP addresses will be enough), that are allowed to connect to .net remoting server.
For example I have a list of allowed IPs on the server. How can I check an IP of connected client?
I need to have a list of computers (i think IP addresses will be enough), that are allowed to connect to .net remoting server.
For example I have a list of allowed IPs on the server. How can I check an IP of connected client?
You can create your own channel. It's a little bit tedious but you can derive from default implementation just to add the check you need. You may take a loot at: http://www.codeproject.com/Articles/4175/NET-Remoting-Customization-Made-Easy-Custom-Sinks
I've understood that it can be done much more easier. It is needed just to create a TCPClient on the client side and connect to server that determines IP and sends it back to Client. So that's how client can find its IP.