Convert IP address to integer format.