ip_to_int 1.0.2 ip_to_int: ^1.0.2 copied to clipboard
This package can be used to convert IP address to integer and revert it !
ip-to-int #
Usage #
Class IpInt #
IpInt("<IP-ADDRESS>")
IpInt("127.0.0.1")
toInt
This method return the String ip address as integer
IpInt("<IP-ADDRESS>").toInt()
int integer = IpInt("127.2.3.1").toInt();
print(integer);
2130838273
toIp
This method return the integer as an String ip address
IpInt("<INTEGER>").toIp()
String ipAddress IpInt("2130706433").toIp()
print(ipAddress)
"127.0.0.1"