Receiving UDP broadcast

前端 未结 2 679
小鲜肉
小鲜肉 2021-02-04 13:27

I have to receive an UDP broadcast (in Ubuntu if that makes any difference). Using Wireshark, I can see the packet being sent from the server machine, and I can see it being rec

2条回答
  •  旧巷少年郎
    2021-02-04 13:45

    As it turns out my code is perfectly fine, as I thought it would be. There was a problem with the network setup itself.

    For posterity, I had set up two static IP'd computers on their own hub, instead of using the built in DHCP server on the server machine to allocate the IP address for the other computer. Pretty localized for my problem but you never know..

提交回复
热议问题