QProcess process; process.start("hostname -I"); process.waitForFinished(); QString ip = process.readAllStandardOutput();