Resolve server ip address when reconnect