Localhost:8080 was refused

Hi all, I am installing rke2 cluster with rancher

I have 3 servers as follows
10.40.81.x - master
10.40.81.y - node
10.40.81.z - rancher
OS ubuntu 22.04

And I’m practicing the installation, my server goes through a proxy to access the internet, and I’m following the instructions and the following error appears. I haven’t been able to fix it yet. Please help me!
link: Simple RKE2, Longhorn, and Rancher Install
Link: installing-rke2-on-ubuntu -

The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port?

kubectl get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?