def long2ip(x):
    """convert ip to numbers in 256 hex
    iutput: 192*(256**3) + 168*(256**2) + 1*256 + 1
    onput: 192.168.1.1
    """
    ips = ''
    n = 3
    while n >= 1:
        ips = ips + str(x / 256 ** n) + '.'
        x = x % 256 ** n
        n = n - 1
    ips = ips + str(x)
    return ips
