<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QHostInfo::lookup &amp; QHostInfo::HostNotFound]]></title><description><![CDATA[<p dir="auto">Hi, can we find out if a machine is live using QHostInfo? (I want to ping somehow ICMP request requires raw tcp and root privileges I guess) QHostInfo::lookUp and QHostInfo::HostNotFound don't work for me How can I do this for Android ios</p>
]]></description><link>https://forum.qt.io/topic/130859/qhostinfo-lookup-qhostinfo-hostnotfound</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 13:02:23 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/130859.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Oct 2021 13:05:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QHostInfo::lookup &amp; QHostInfo::HostNotFound on Tue, 05 Oct 2021 18:09:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">The most usual way to do that is to run the ping command using <a href="https://doc.qt.io/qt-5/qprocess.html" target="_blank" rel="noopener noreferrer nofollow ugc">QProcess</a>.</p>
]]></description><link>https://forum.qt.io/post/683675</link><guid isPermaLink="true">https://forum.qt.io/post/683675</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 05 Oct 2021 18:09:08 GMT</pubDate></item><item><title><![CDATA[Reply to QHostInfo::lookup &amp; QHostInfo::HostNotFound on Tue, 05 Oct 2021 15:48:49 GMT]]></title><description><![CDATA[<pre><code>        QHostInfo hi = QHostInfo::fromName("192.168.1.44");
        if(hi.error() == hi.NoError) {
            qDebug() &lt;&lt; "OK";
        }
        if(hi.error() == hi.HostNotFound) {
            qDebug() &lt;&lt; "Host not found";
        }
</code></pre>
<p dir="auto">Isn't work for me</p>
]]></description><link>https://forum.qt.io/post/683665</link><guid isPermaLink="true">https://forum.qt.io/post/683665</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 05 Oct 2021 15:48:49 GMT</pubDate></item></channel></rss>