socket.inet_ntoa()

socket.inet_ntoa(packed_ip) → ip_address_string

Convert an IP address from 32-bit packed binary format to string format