java Convert a string IPv4 IP address to the equivalent long numeric value.

Java
result += (Integer.parseInt(ipAddressInArray[i]) % 256 * Math.pow(256, power));
Copied!
Source

Also in Java: