Need to check whether the given IP present in these multiple range or not

```
Given IP: 49.14.1.2
Ranges: 49.14.0.0 - 49.14.63.255, 106.76.96.0 - 106.76.127.255, and so on

```

I have tried by converting to integer and verifying the ranges. Is there any other way to do in IP itself without converting to integer