<?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[Clien IP (Internet) auslesen]]></title><description><![CDATA[<p>hey,</p>
<p>ich hab hier versucht ein programm zu schreiben, dass mein clien-ip ausliest. doch wenn ich es ausführe dann bringt er mir nur komische zeichen(zum schluss setzt er noch ein smily!!!!).</p>
<p>Was hab ich falsch gemacht???? unten steht der komplett code.</p>
<p>#include &quot;windows.h&quot;<br />
#include &quot;ras.h&quot;<br />
#include &quot;stdio.h&quot;</p>
<p>void main()<br />
{</p>
<p>RASCONN RasConn;<br />
DWORD RasConnSize;<br />
DWORD Connections;<br />
RASPPPIP lpprojection;<br />
DWORD lpcb;</p>
<p>RasConn.dwSize = RasConnSize = sizeof(RasConn);</p>
<p>if (RasEnumConnections(&amp;RasConn, &amp;RasConnSize, &amp;Connections))<br />
{<br />
printf(&quot;Fehler: Mehr als eine aktive RAS-Verbindung!\n&quot;);<br />
return;<br />
}<br />
if (Connections != 1)<br />
{<br />
printf(&quot;Fehler: Keine aktive RAS-Verbindung!\n&quot;);<br />
return;<br />
}</p>
<p>lpcb = sizeof(RASP_PppIp);<br />
RasGetProjectionInfo(RasConn.hrasconn, RASP_PppIp, &amp;lpprojection, &amp;lpcb);<br />
printf(&quot;die ip ist %s\n&quot;, lpprojection.szIpAddress);<br />
return;<br />
}</p>
<p>gruß markus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/42922/clien-ip-internet-auslesen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 12:14:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/42922.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jul 2003 07:38:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 07:38:20 GMT]]></title><description><![CDATA[<p>hey,</p>
<p>ich hab hier versucht ein programm zu schreiben, dass mein clien-ip ausliest. doch wenn ich es ausführe dann bringt er mir nur komische zeichen(zum schluss setzt er noch ein smily!!!!).</p>
<p>Was hab ich falsch gemacht???? unten steht der komplett code.</p>
<p>#include &quot;windows.h&quot;<br />
#include &quot;ras.h&quot;<br />
#include &quot;stdio.h&quot;</p>
<p>void main()<br />
{</p>
<p>RASCONN RasConn;<br />
DWORD RasConnSize;<br />
DWORD Connections;<br />
RASPPPIP lpprojection;<br />
DWORD lpcb;</p>
<p>RasConn.dwSize = RasConnSize = sizeof(RasConn);</p>
<p>if (RasEnumConnections(&amp;RasConn, &amp;RasConnSize, &amp;Connections))<br />
{<br />
printf(&quot;Fehler: Mehr als eine aktive RAS-Verbindung!\n&quot;);<br />
return;<br />
}<br />
if (Connections != 1)<br />
{<br />
printf(&quot;Fehler: Keine aktive RAS-Verbindung!\n&quot;);<br />
return;<br />
}</p>
<p>lpcb = sizeof(RASP_PppIp);<br />
RasGetProjectionInfo(RasConn.hrasconn, RASP_PppIp, &amp;lpprojection, &amp;lpcb);<br />
printf(&quot;die ip ist %s\n&quot;, lpprojection.szIpAddress);<br />
return;<br />
}</p>
<p>gruß markus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311151</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311151</guid><dc:creator><![CDATA[Darth_Kane]]></dc:creator><pubDate>Thu, 17 Jul 2003 07:38:20 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 08:07:44 GMT]]></title><description><![CDATA[<p>Guggst du <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39075" rel="nofollow">hier</a> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/311164</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311164</guid><dc:creator><![CDATA[Hexagon]]></dc:creator><pubDate>Thu, 17 Jul 2003 08:07:44 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 10:24:55 GMT]]></title><description><![CDATA[<p>nein die mein ich nicht. ich meine die INTERNET-IP!!!!!!!!! HILFE!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311275</guid><dc:creator><![CDATA[Darth_Kane]]></dc:creator><pubDate>Thu, 17 Jul 2003 10:24:55 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 10:32:59 GMT]]></title><description><![CDATA[<p>Gib mir mal ein Beispiel der Ausgabe bitte....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311281</guid><dc:creator><![CDATA[Hexagon]]></dc:creator><pubDate>Thu, 17 Jul 2003 10:32:59 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 10:42:55 GMT]]></title><description><![CDATA[<p>|||||||||||||||||||||||| so sieht das dann aus! am besten die machst schnell ne konsolenanwendung mit c++ quellcode und kopierst das rein und di rasapi32.lib noch einfügen.</p>
<p>im internet findet man auch darüber nichts.</p>
<p>gruß markus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311286</guid><dc:creator><![CDATA[Darth_Kane]]></dc:creator><pubDate>Thu, 17 Jul 2003 10:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 10:44:55 GMT]]></title><description><![CDATA[<p>Das Beispiel von Hexagon gibt doch deine Internetaddresse aus. (Bei mir geht es)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311287</guid><dc:creator><![CDATA[Oliver]]></dc:creator><pubDate>Thu, 17 Jul 2003 10:44:55 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 10:50:05 GMT]]></title><description><![CDATA[<p>ja? kannst du mal bitte hab ich dann ne .h vergessen oder so? was mussen dort alles stehn? bin nämlich noch nicht so fit darin <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>gruß markus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311291</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311291</guid><dc:creator><![CDATA[Darth_Kane]]></dc:creator><pubDate>Thu, 17 Jul 2003 10:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 11:18:32 GMT]]></title><description><![CDATA[<p>einfach folgendes inkludieren</p>
<pre><code class="language-cpp">#include &lt;ras.h&gt;
#pragma comment(lib,&quot;rasapi32&quot;)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/311310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311310</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Thu, 17 Jul 2003 11:18:32 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Thu, 17 Jul 2003 11:49:43 GMT]]></title><description><![CDATA[<p>ja das hab ich schon includiert. steht ja auch auf meinem code (s.o.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/311343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/311343</guid><dc:creator><![CDATA[Darth_Kane]]></dc:creator><pubDate>Thu, 17 Jul 2003 11:49:43 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Fri, 18 Jul 2003 11:08:47 GMT]]></title><description><![CDATA[<p>das bsp. von hexagon zeigt mir nur die netzwerk ip an. nicht aber die i-net ip!</p>
<p>gruß markus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/312103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/312103</guid><dc:creator><![CDATA[Darth_Kane]]></dc:creator><pubDate>Fri, 18 Jul 2003 11:08:47 GMT</pubDate></item><item><title><![CDATA[Reply to Clien IP (Internet) auslesen on Sat, 19 Jul 2003 13:16:20 GMT]]></title><description><![CDATA[<p>ich hab es jetzt geschafft. danke an alle die mir geholfen haben.</p>
<p>da es ja soviele fragen gibt wie man seine internet-ip ausliest und jeder der helfen will immer den code für die netzwerk-ip reinschreibt. kritzel cih jetzt mal den richtigen code hin.</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;ras.h&gt;
#include &lt;stdio.h&gt;

void main() 
{ 

	RASCONN RasConn; 
	DWORD RasConnSize; 
	DWORD Connections; 
	RASPPPIP lpprojection; 
	DWORD lpcb; 

	RasConn.dwSize = RasConnSize = sizeof(RasConn); 

	if (RasEnumConnections(&amp;RasConn, &amp;RasConnSize, &amp;Connections)) 
		{ 
			printf(&quot;Fehler: Mehr als eine aktive RAS-Verbindung!\n&quot;); 

		} 
	if (Connections != 1) 
		{ 
			printf(&quot;Fehler: Keine aktive RAS-Verbindung!\n&quot;); 

		} 

	lpprojection.dwSize = sizeof(RASPPPIP); 

	RasGetProjectionInfo(RasConn.hrasconn, RASP_PppIp, &amp;lpprojection, &amp;lpcb); 
	printf(&quot;Ihre Internet-Client IP ist %s\n\n&quot;, lpprojection.szIpAddress); 

}
</code></pre>
<p>gruß markus</p>
<p><a href="http://www.waldschaben.de.vu" rel="nofollow">www.waldschaben.de.vu</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/312762</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/312762</guid><dc:creator><![CDATA[Darth_Kane]]></dc:creator><pubDate>Sat, 19 Jul 2003 13:16:20 GMT</pubDate></item></channel></rss>