在Windows中使用Python从Ubuntu终端进行Udp广播在Windows中使用错误的网络

2024-05-15 23:43:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我在Windows Ubuntu终端中使用UDP广播,在python中使用"<broadcast>",但它只在我不使用的单个网络接口上广播

前天我没有遇到这样的问题,我可以通过使用正确的网络地址的广播ip来解决这个问题。但是我不明白为什么会出现这个问题,难道不应该在每个网络接口上使用"<broadcast>"广播吗


Tags: ip终端ubuntuwindows网络接口broadcastudp网络地址