What does advertise-addr parameter do when joining a swarm

I get what advertise-addr does when initialising a docker swarm (the X.X.X.X below). But what does it do when joining a swarm as a worker with a command like:

docker swarm join --advertise-addr=12.0.0.2 --token SWMTKN-1-.... X.X.X.X:2377

I was hoping this would change the route the swarm manager used to access the node/worker but I have no idea how I can confirm this.

One way is using the traefik load balancer – it gives me a new server ip 10.0.1.138 (not the public IP) when joining the swarm but when I ping 10.0.1.138 from within the traefik container I get nothing (all other servers work).

The server I am using to join as a worker FYI is behind a CGNAT and 12.0.0.2 is a vpn address used to access it

Source: StackOverflow