ip convert between str and long