UdpClient receive on broadcast address

前端 未结 4 1596
感动是毒
感动是毒 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:33

    That error means the protocol cant bind to the selected IP/port combination.

    I havent used UDP broadcast in ages, but I do recall you need to use different IP ranges.

提交回复
热议问题