Function to efficiently tell if an IPV6 address is in an IPV6 network

Jeffrey Wheeler
Tera Contributor

I currently have a script that changes an IPV4 address to an integer can then compares that integer to a "hi" and "low" integer on the IP network record to tell if the address is within the network. Does anyone know how to do this with IPV6 addresses? There are some javascript examples online, but they use BigInt() which is not available in ServiceNow.

 

How are you solving this? Do you have a different method?

 

Thanks,

Jeff Wheeler

1 REPLY 1

aryanpandi
Tera Contributor

Did you happen to get any solution for this? since i am also facing the same issue for BigInt not supported in the servci enow. Ig supported in Xanadu but not below it .