Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ip='127.0.0.1'
ipsplit=ip.split('.')
(int(ipsplit[0]) * 16777216)+(int(ipsplit[1])*65536)+(int(ipsplit[2])*256)+int(ipsplit[3])
# 2130706433
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.