UdpClient receive on broadcast address

前端 未结 4 1600
感动是毒
感动是毒 2020-12-01 15:03

In c# I am using the UdpClient.Receive function:

public void StartUdpListener(Object state)
    {
        try
        {
            udpServer = new UdpClient         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 15:27

    for your purposes I believe you will want to use IPAddress.Any instead of IPAddress.Broadcast. Hope this helps!

提交回复
热议问题