js ip to number code example Example: ipv4 to int32 js const ipToInt32 = (ip) => ip.split`.`.reduce((r, e) => r * 256 + +e);