Hi,
I was working on Segmentation based on IP range and observed a weird behaviour. If the number of digits in the IP varies, it is not resolved.
Example:
The IP of my system is 10.202.102.109
When I provide an IP range of 10.202.102.90 to 10.202.102.110 in the segment, it does't gets resolved.
![](https://forums.adobe.com/api/core/v3/attachments/886291/data)
But when I change the IP range from 10.202.102.090 to 10.202.102.110 in the segment, it gets resolved.
![](https://forums.adobe.com/api/core/v3/attachments/886319/data)
Also, there is a defect in the file segment code. On Line 16 of /libs/cq/personalization/components/traits/surferinfo/iprange/trait.js.jsp, AEM is trying to read endRange value but is reading it from startRange property instead of endRange. So, to test the above defect, you need to change it to endRange, otherwise the IP resolves only for the first IP in the range.
![](https://forums.adobe.com/api/core/v3/attachments/886309/data)
Thanks & Regards,
Shailesh Kumar