update ip and port