IP address to binary conversion

Jeroen Wolff jwolff at ision.nl
Fri Jun 15 02:31:18 EDT 2001


>
>>>> host = n & mask
>>>> net = n - host

>>>> print "net: %X  host: %X" % (net, host)
>net: C0000000  host: A80201
>
Is there a way back to present the calculated results in a doted
decimal notation?

Jeroen



More information about the Python-list mailing list