ip_to_hex function

Represent address as hexadecimal