Given a subnet mask, how to verify if an IP falls in that subnet.

Apr 8 2009 6:35 AM
Hi, I have a scenario wherein I need to give access of a system to the hosts of a subnet. For that I need to verify if the incoming request is from the IP which falls within the subnet. Is there some way to do that automatically using c# functionality.