referred the comments on client/node.go but still not quite clear. Thanks
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.
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.