get IP automatically