auto get ip address and port on failure