简体   繁体   中英

How to restrict .net remoting clients connections to .net remoting server?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM