Why Chat example doesn't work on Windows XP? In Linux or W2K seems to work.
The problem is the broadcast ip from interface:
qDebug() << "IP: " << entry.ip().toString() <<
"\nNetmask " << entry.netmask().toString() <<
"\nBroadcast " << entry.broadcast().toString();
}
}
foreach (QNetworkInterface interface, QNetworkInterface::allInterfaces()) {
foreach (QNetworkAddressEntry entry, interface.addressEntries()) {
qDebug() << "IP: " << entry.ip().toString() <<
"\nNetmask " << entry.netmask().toString() <<
"\nBroadcast " << entry.broadcast().toString();
}
}
To copy to clipboard, switch view to plain text mode
In Windows XP entry.broadcast() is Null in LAN ifaces also.
Thx. Selu.
Bookmarks