add the algroithm of converting IP address from string to int(string)