<?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[NetzwerkPC Online?]]></title><description><![CDATA[<p>Hallo,<br />
habe hier ein programm geschrieben das vom localhost den Namen und die die IP ausließt! wenn er das gemacht hat soll er prüfen ob die ip online ist.</p>
<p>Also nun zu meiner Frage:<br />
Was muss ich an diesem Quellcode verändern um im Netzwerk die IP, den Namen und den Status eines anderen PC`s herauszufinden?</p>
<p>bedanke mich schonmal im voraus<br />
mfG. Kevin</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner): TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
String ip = IdIPWatch1-&gt;LocalIP();
Label1-&gt;Caption=ip;

String name = IdIPWatch1-&gt;LocalName;
Label2-&gt;Caption=name;

if(Label1-&gt;Caption == &quot;192.168.0.2&quot;)
{
Label7-&gt;Caption=&quot;Online&quot;;
}
else
{
Label7-&gt;Caption=&quot;Offline&quot;;
}
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/195033/netzwerkpc-online</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 07:35:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195033.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Oct 2007 23:59:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NetzwerkPC Online? on Fri, 12 Oct 2007 23:59:38 GMT]]></title><description><![CDATA[<p>Hallo,<br />
habe hier ein programm geschrieben das vom localhost den Namen und die die IP ausließt! wenn er das gemacht hat soll er prüfen ob die ip online ist.</p>
<p>Also nun zu meiner Frage:<br />
Was muss ich an diesem Quellcode verändern um im Netzwerk die IP, den Namen und den Status eines anderen PC`s herauszufinden?</p>
<p>bedanke mich schonmal im voraus<br />
mfG. Kevin</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner): TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
String ip = IdIPWatch1-&gt;LocalIP();
Label1-&gt;Caption=ip;

String name = IdIPWatch1-&gt;LocalName;
Label2-&gt;Caption=name;

if(Label1-&gt;Caption == &quot;192.168.0.2&quot;)
{
Label7-&gt;Caption=&quot;Online&quot;;
}
else
{
Label7-&gt;Caption=&quot;Offline&quot;;
}
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1384210</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384210</guid><dc:creator><![CDATA[kevin2911]]></dc:creator><pubDate>Fri, 12 Oct 2007 23:59:38 GMT</pubDate></item><item><title><![CDATA[Reply to NetzwerkPC Online? on Sat, 13 Oct 2007 06:48:32 GMT]]></title><description><![CDATA[<p>Siehe <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39305" rel="nofollow">FAQ</a> unter &quot;Netzwerk&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384237</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sat, 13 Oct 2007 06:48:32 GMT</pubDate></item></channel></rss>