Is there a cross-platform way to get the local IP address (i.e. something that looks like 192.168.1.49) of the computer using Qt?
192.168.1.49
I want to make an FTP
QNetworkInterface::allAddresses() will give you the network addresses. You can then filter the results to IPv4 addresses that are not loopback addresses:
QNetworkInterface::allAddresses()
QList list = QNetworkInterface::allAddresses(); for(int nIter=0; nIter