擅长:python、mysql、java
<p><code>0.0.0.0</code>是<a href="https://en.wikipedia.org/wiki/Reserved_IP_addresses" rel="noreferrer">special address</a>,是特殊<code>0.0.0.0/8</code>范围的一部分,表示“当前网络”或“未指定”。您无法连接到它,因为它未定义为目标。在</p>
<p>这就是为什么你得到一个<code>NoRouteToHostException</code>-地址根本不可路由。如果您尝试运行<code>ping 0.0.0.0</code>或类似的命令,也会遇到类似的失败。在</p>
<p><code>ConnectionRefused</code>当远程计算机实际拒绝连接时发生,这通常表示远程计算机没有侦听套接字或位于防火墙后面。在</p>