无法从 Azure VM 发送 UDP 数据报

Cannot send UDP datagrams from Azure VM

我正在尝试从具有 public IP 的 Azure VM 和具有 UDP 出站连接设置(实际上是任何协议)的安全组发送 UDP 数据报,但我没有收到数据报远程计算机。

我可以在 VM 上毫无问题地接收 UDP 数据报。

Priority Name  Port     Protocol Source Destination Action
100      Any   1-65000  Any      Any    Any         Allow

为了测试我正在使用 UDP Sender/Receiver。

我怎样才能使这个工作?

您可以检查远程计算机是否正在侦听同一 UDP 端口并绑定 IP 地址 0.0.0.0。此外,UDP 和端口应该在远程计算机的防火墙的入站规则中被允许。请注意 A​​zure 支持 UDP 网络协议但不支持 UDP 广播。您可以在 this blog. You could also get more references in this answer.

中获得更多解释

希望这些信息对您有所帮助。