Added faster getip function