ip detection not needed, added hostname detection