Converts IP to int