<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.1</li>
<li>Operating System version: windows10</li>
<li>Java version: 1.8.0</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">I run the <a href="https://github.com/dubbo-x/example/tree/master/java-dubbo-consul">code</a>, which is copied from <a href="https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-consul">dubbo-samples-consul</a>.</p>
<ol dir="auto">
<li>run the docker-compose.yml</li>
<li>run provider</li>
<li>run consumer</li>
</ol>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Provider seems ok:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16648345/59410921-a023a680-8dec-11e9-9e08-4e355e539e4f.png"><img src="https://user-images.githubusercontent.com/16648345/59410921-a023a680-8dec-11e9-9e08-4e355e539e4f.png" alt="provider" style="max-width: 100%;"></a></p>
<p dir="auto">Consumer fails with error:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16648345/59410968-c0ebfc00-8dec-11e9-8a2e-3eeb25f1d78c.png"><img src="https://user-images.githubusercontent.com/16648345/59410968-c0ebfc00-8dec-11e9-8a2e-3eeb25f1d78c.png" alt="consumer" style="max-width: 100%;"></a></p>
<p dir="auto">So I check the status of service on consul:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16648345/59410620-dc0a3c00-8deb-11e9-81a4-c5683655a610.png"><img src="https://user-images.githubusercontent.com/16648345/59410620-dc0a3c00-8deb-11e9-81a4-c5683655a610.png" alt="health_check1" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16648345/59410629-e298b380-8deb-11e9-9223-1916262d1a54.png"><img src="https://user-images.githubusercontent.com/16648345/59410629-e298b380-8deb-11e9-9223-1916262d1a54.png" alt="health_check2" style="max-width: 100%;"></a></p>
<p dir="auto">It seems that health check fails, but direct connection to service without registry is ok.</p>
<p dir="auto">So is there anything that I do wrongly, or is there any difference on windows10?</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> 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: latest</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<ol dir="auto">
<li>Config the protocol, but do not config the port parameter</li>
<li>Start the application integrating dubbo.</li>
</ol>
<p dir="auto">According the document, if user does not config the port of protocol, Dubbo will pick an available port that count from the default port dynamically.<br>
But the actual result is that Dubbo just pick the default port. It does not pick an available port dynamically.</p>
<p dir="auto">So should we modify the code or document ?</p>