Added faster function getip