def ip_num(ip): ipl=map(int,ip.split(".")) l="" for i in ipl: a="" while 1: y=i%2 s=i//2 if s==0: a+=str(y) break a+=str(y) i=s l+=("0"*8+a[::-1])[-8:] num=0 for x,y in enumerate(l): num+=int(y)*2**(len(l)-x-1) return num def num_ip(num:int): x="" wh...