How can I change the Rancher Server URL IP address without Rancher UI?

Hi, I have a question.

Yesterday, I move my baremetal server to another place and set new address at that server.

I install Ubuntu and Docker at that server, and install Rancher on docker.

However, when I change address of server, I can’t enter the Rancher UI at Chrome.

Maybe the problem is that the address which I put before at UI.

How can I change that IP address without UI?

Shell into the container running the rancher/rancher container and use the following commands:

# To check current value
kubectl get settings.management.cattle.io server-url
# To change to a new value
kubectl patch settings.management.cattle.io server-url -p '{"value":"NEWVALUE"}' --type=merge