Multicast UDP Ethernet
-
Hi!
I have created a multicast receiver , but it doesn't work.
I can see the message in wireshark but the signal readyread is never triggered in the program.
I have:
QUdpSocket *sqtSocket;
QHostAddress groupAddress;
sqtSocket = new QUdpSocket(this);
groupAddress = QStringLiteral("225.25.250.3");
sqtSocket->bind(QHostAddress::AnyIPv4,, 3003, QUdpSocket::ShareAddress)
sqtSocket->joinMulticastGroup(groupAddress) ;I send the message between 2 computer with ethernet.
If I send the message in the same computer I don't have this problem.Regards!
-
Hi!
I have created a multicast receiver , but it doesn't work.
I can see the message in wireshark but the signal readyread is never triggered in the program.
I have:
QUdpSocket *sqtSocket;
QHostAddress groupAddress;
sqtSocket = new QUdpSocket(this);
groupAddress = QStringLiteral("225.25.250.3");
sqtSocket->bind(QHostAddress::AnyIPv4,, 3003, QUdpSocket::ShareAddress)
sqtSocket->joinMulticastGroup(groupAddress) ;I send the message between 2 computer with ethernet.
If I send the message in the same computer I don't have this problem.Regards!
@jessiffmm maybe silly question. Did you check the firewall?
-
@jessiffmm what if you try this Qt example under same network conditions?
-
@jessiffmm what if you try this Qt example under same network conditions?
-
@jessiffmm ok, so is it a network configuration issue?
BTW you didn't state the OS you're using, please describe both senders and receiver environments.
Just in case you may want to check multicast really works in your network by checking this StackOverflow answer (see the Python script...)