Could not read UDP packet. The situation is this: there is a device that sends UDP packets to the addresses 20.255.255.255. WireShark sees these packets, but I cannot receive a packet with a program written in QT. I receive a package like this:
connect(socket, SIGNAL(readyRead()), this, SLOT(listPort())); socket->bind(QHostAddress("20.0.0.1"), 36882); // Это код слота listPort() QByteArray datagram; QHostAddress sender; quint16 senderPort; while (socket->hasPendingDatagrams()) { datagram.resize(socket->pendingDatagramSize()); socket->readDatagram(datagram.data(), datagram.size(),&sender, &senderPort); } The address of the computer running the program written in QT 20.0.0.1 (as well as 192.168.1.10).
What could be the reason?