pizug / cpi-groovy-examples

Groovy Script Examples for SAP Cloud Integration (CPI)
https://pizug.com/cpi-groovy-examples
Other
74 stars 50 forks source link

CIDR range in Groovy #1

Open shiva2905-APIM opened 3 years ago

shiva2905-APIM commented 3 years ago

Hi Have a requirement where i need to validate whether the incoming IP address fall under the list of the IP exists in CIDR range

fatihpense commented 3 years ago

Hello, maybe you can try one of these solutions: https://stackoverflow.com/questions/577363/how-to-check-if-an-ip-address-is-from-a-particular-network-netmask-in-java