import socket
import struct


def get_ip_from_long(long_ip):
    """
        Get IP from a long int
    Args:
        long_ip: IP in the long int format

    Returns: IP in the format x.x.x.x
    """
    return socket.inet_ntoa(struct.pack('!L', long_ip))