Converter Ip->Number / Number->Ip
Convert IP Address to IP Number
Converter
Ip->Number / Number->Ip
Ip:
Number:
Convert Ip to Ip Number
Ip = AAA.BBB.CCC.DDD
Number = 256^3 * AAA + 256^2 * BBB + 256^1 * CCC + 256^0 * DDD
Number = 256^3 * AAA + 256^2 * BBB + 256^1 * CCC + 256^0 * DDD
Convert Ip Number to Ip
Ip -> AAA.BBB.CCC.DDD
CCC = Floor(Number / 256) % 256
BBB = Floor(Number / 256^2) % 256
AAA = Floor(Number / 256^3) % 256
Floor - returns the value of a number rounded DOWNWARDS to the nearest integer.
DDD = Number % 256CCC = Floor(Number / 256) % 256
BBB = Floor(Number / 256^2) % 256
AAA = Floor(Number / 256^3) % 256
3 comments:
I think this is really usefull if you don't know how to calculate it ;)
Thanks!
Thank you for your great explanation, it was a big help for me.
Lovely posst
Post a Comment