def intiptrans(s): iplst=s.split('.') num='' for item in iplst: item=bin(int(item)) item=item[2:] item=item.rjust(8,'0') num+=item num=int(num,2) return num def binaryiptrans(s): num=bin(int(s))[2:] num=num.rjust(32,'0') iplst=[] tag=0 ip='...