NodeJS UDP Multicast How to

前端 未结 2 1507
南旧
南旧 2021-01-31 09:42

I\'m trying to send a UDP Multicast Packet to: 230.185.192.108 so everyone subscribed will receive. A bit stuck. I believe it\'s broadcasting correctly, but can\'t seem to pick

2条回答
  •  孤街浪徒
    2021-01-31 09:57

    Changed:

    client.addMembership('230.185.192.108');
    

    to

    client.addMembership('230.185.192.108',HOST); //Local IP Address
    

提交回复
热议问题