diff --git a/tidb-server/main.go b/tidb-server/main.go
index <HASH>..<HASH> 100644
--- a/tidb-server/main.go
+++ b/tidb-server/main.go
@@ -419,7 +419,7 @@ func overrideConfig(cfg *config.Config) {
 	if actualFlags[nmAdvertiseAddress] {
 		cfg.AdvertiseAddress = *advertiseAddress
 	}
-	if len(cfg.AdvertiseAddress) == 0 {
+	if len(cfg.AdvertiseAddress) == 0 && cfg.Host == "0.0.0.0" {
 		cfg.AdvertiseAddress = util.GetLocalIP()
 	}
 	if len(cfg.AdvertiseAddress) == 0 {
diff --git a/util/misc.go b/util/misc.go
index <HASH>..<HASH> 100644
--- a/util/misc.go
+++ b/util/misc.go
@@ -440,7 +440,8 @@ type SequenceSchema interface {
 	SequenceByName(schema, sequence model.CIStr) (SequenceTable, error)
 }
 
-// SequenceTable is implemented by tableCommon, and it is specialised in handling sequence operation.
+// SequenceTable is implemented by tableCommon,
+// and it is specialised in handling sequence operation.
 // Otherwise calling table will cause import cycle problem.
 type SequenceTable interface {
 	GetSequenceID() int64
*:Bug fix/Sign in failed: Failed to connect to TiDB in tiup dashboard (#<I>)