IP discovery script