Swarmkit: Confused about the difference between advertised-addr and listen-addr, can someone explain a little bit about it?

Created on 29 Aug 2016  路  2Comments  路  Source: docker/swarmkit

referred the comments on client/node.go but still not quite clear. Thanks

kinquestion

Most helpful comment

Take, for example, the case where your node is behind a NAT. Your advertise address would be the outward facing WAN address (that the gateway would forward to your node) and your listen address would be the local interface you listened on (which would likely be a private IP)

advertise-addr is your phone number, listen-addr is the phone you're waiting by for calls.

All 2 comments

advertise-addr is the address that other nodes can use to connect.
listen-addr is the actual network address to listen on within the node.

Take, for example, the case where your node is behind a NAT. Your advertise address would be the outward facing WAN address (that the gateway would forward to your node) and your listen address would be the local interface you listened on (which would likely be a private IP)

advertise-addr is your phone number, listen-addr is the phone you're waiting by for calls.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stylixboom picture stylixboom  路  4Comments

nishanttotla picture nishanttotla  路  7Comments

allencloud picture allencloud  路  7Comments

cpuguy83 picture cpuguy83  路  9Comments

dperny picture dperny  路  8Comments