Simple UDP broadcast client and server on different machines

后端 未结 2 990
滥情空心
滥情空心 2021-01-02 04:29

The following client and server UDP broadcast code works on fine when both are on the same PC. However when I have them on separate PC\'s in the same WIFI LAN nothing happe

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 05:18

    Is hostname localhost? If so, you can not reach other pc. You must change it with target IP address.

提交回复
热议问题