<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.0</li>
<li>Operating System version: MacOS</li>
<li>Java version: 11.0.1</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Run org.apache.dubbo.demo.provider.Provider</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Provider should start.</p>
<h3 dir="auto">Actual Result</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Caused by: java.lang.IllegalStateException: Failed to connect to config center (zookeeper): 127.0.0.1:2181 in 30000ms.
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.initWith(ZookeeperDynamicConfiguration.java:79)
	at org.apache.dubbo.configcenter.AbstractDynamicConfiguration.&lt;init&gt;(AbstractDynamicConfiguration.java:46)
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.&lt;init&gt;(ZookeeperDynamicConfiguration.java:62)
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:29)
	at org.apache.dubbo.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:33)
	at org.apache.dubbo.config.ConfigCenterConfig.startDynamicConfiguration(ConfigCenterConfig.java:105)
	at org.apache.dubbo.config.ConfigCenterConfig.init(ConfigCenterConfig.java:82)
	at org.apache.dubbo.config.spring.ConfigCenterBean.afterPropertiesSet(ConfigCenterBean.java:98)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1688)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1626)
	... 12 more"><pre class="notranslate"><code class="notranslate">Caused by: java.lang.IllegalStateException: Failed to connect to config center (zookeeper): 127.0.0.1:2181 in 30000ms.
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.initWith(ZookeeperDynamicConfiguration.java:79)
	at org.apache.dubbo.configcenter.AbstractDynamicConfiguration.&lt;init&gt;(AbstractDynamicConfiguration.java:46)
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.&lt;init&gt;(ZookeeperDynamicConfiguration.java:62)
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:29)
	at org.apache.dubbo.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:33)
	at org.apache.dubbo.config.ConfigCenterConfig.startDynamicConfiguration(ConfigCenterConfig.java:105)
	at org.apache.dubbo.config.ConfigCenterConfig.init(ConfigCenterConfig.java:82)
	at org.apache.dubbo.config.spring.ConfigCenterBean.afterPropertiesSet(ConfigCenterBean.java:98)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1688)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1626)
	... 12 more
</code></pre></div>
<p dir="auto">People may not install zookeeper locally, we need to restore the behavior to use multicast as default registry.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: macOs</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>export service with protocolConfig defined as below in API mode.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ProtocolConfig protocolConfig = new ProtocolConfig();
protocolConfig.setPort(20880);
protocolConfig.setIothreads(2);

ServiceConfig messageService = new ServiceConfig();
messageService.setProtocol(protocolConfig);"><pre class="notranslate"><code class="notranslate">ProtocolConfig protocolConfig = new ProtocolConfig();
protocolConfig.setPort(20880);
protocolConfig.setIothreads(2);

ServiceConfig messageService = new ServiceConfig();
messageService.setProtocol(protocolConfig);
</code></pre></div>
<ol start="2" dir="auto">
<li>export another service with default protocol as below in XML mode.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;demoService&quot; class=&quot;com.ctrip.framework.cdubbo.api.DemoServiceImpl&quot;/&gt;
&lt;dubbo:service interface=&quot;com.ctrip.framework.cdubbo.api.DemoService&quot; ref=&quot;demoService&quot;&gt;
&lt;/dubbo:service&gt;"><pre class="notranslate"><code class="notranslate">&lt;bean id="demoService" class="com.ctrip.framework.cdubbo.api.DemoServiceImpl"/&gt;
&lt;dubbo:service interface="com.ctrip.framework.cdubbo.api.DemoService" ref="demoService"&gt;
&lt;/dubbo:service&gt;
</code></pre></div>
<ol start="3" dir="auto">
<li>XML service get API service's protocol, which makes port and iothreads parameter incorrect.</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">XML service's port should in default 20880.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">XML service's port is 20770, and iothreds is 2.</p>