I need to check whether the ip address resides within the range of IP.
For example 10-20.3.5.6 contains IP as
10.3.5.6 11.3.5.6 . . . 20.3.5.6
I need to know the following things:
1) 1-10.0-255.0.0-255 is the IP range I have in DB. I need to check if the IP "10.0.7.8" falls in the above specified range.
2) Consider another scenario is 10-20.10-20.10-20.10-20 I have in DB. I need to check if any one of the IP in range 10-20.10.10-30.10-50 falls in above range?