Rancher OS with portainer

Hi I am using AWS rancher AMI to create server. And I am able to run all my docker containers there.
Now I am just trying with portainer to view all containers in all my servers.I ran the docker Image of portainer and access it through the url. And I am able to list all my containers in the server where portainer is running. Now I want to list the remote endpoints. But adding a new new end point it is not able to connect with the port 2376. I added the firewall port 2376 but not sure docker is running on port 2376.
I checked the cloud-config.yaml file, but no information about on which port docker is running.
can anyone tell me by default on which port docker is running on an AWS rancher ami server , how to check it?
if not how to add it?
I tried to add tls-args in cloud_config.yml as -h 0.0.0.0:2376
after that I am getting the error as Cannot connect to the Docker daemon. Is the docker daemon running on this host?
Can any one help me on this?

Have you tried out the docs for TLS? (https://docs.rancher.com/os/configuration/setting-up-docker-tls/)