<?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[Internet IP rausbekommen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte gern ein Programm schreiben, welches mir meine Internet IP ausgibt.<br />
Ich besitze einen Router!</p>
<p>Danke für eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/133603/internet-ip-rausbekommen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 04:38:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/133603.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Jan 2006 09:20:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Internet IP rausbekommen on Thu, 19 Jan 2006 09:20:38 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte gern ein Programm schreiben, welches mir meine Internet IP ausgibt.<br />
Ich besitze einen Router!</p>
<p>Danke für eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970313</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Thu, 19 Jan 2006 09:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Thu, 19 Jan 2006 10:10:55 GMT]]></title><description><![CDATA[<p><a href="http://checkip.dyndns.org" rel="nofollow">http://checkip.dyndns.org</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/970370</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970370</guid><dc:creator><![CDATA[RED-BARON]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Thu, 19 Jan 2006 10:11:39 GMT]]></title><description><![CDATA[<p>und wie kann mann das auswerte mit c++?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970371</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Thu, 19 Jan 2006 10:22:54 GMT]]></title><description><![CDATA[<p>Du machst ein connect() zu obiger url und gehst die Antwort ( Website ) durch bis Du die IP hast.</p>
<p>Wie Webseiten geladen werden dürftest Du in der FAQ finden oder auf <a href="http://c-worker.ch" rel="nofollow">c-worker.ch</a></p>
<p>Grüße<br />
RB</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970380</guid><dc:creator><![CDATA[RED-BARON]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Thu, 19 Jan 2006 10:24:27 GMT]]></title><description><![CDATA[<p>Vieleicht hilft Dir die Funktion &quot;GetIpStatistics()&quot;.<br />
Schlage bitte in der MSDN-Library-Hilfe nach.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970383</guid><dc:creator><![CDATA[RR]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:24:27 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Thu, 19 Jan 2006 13:05:42 GMT]]></title><description><![CDATA[<p>Hat keiner ein Beipiel?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970524</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970524</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Thu, 19 Jan 2006 13:05:42 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Thu, 19 Jan 2006 13:09:19 GMT]]></title><description><![CDATA[<p>Wenn Du ein Router hast, ist das leider nicht ganz einfach... wie &quot;RED-BARON&quot; gesagt hast, könntest Du irgendeinen Server anfragen, der Dir Deine IP-Adresse mitteilt... (z.B. via CInternetSession::OpenURL bzw. InternetOpenUrl)<br />
Wenn Dein Reouter UPnP unterstützt kannst Du den auch direkt fragen (kann Dir jetzt aber kein Beispiel zeigen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> )...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970529</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 19 Jan 2006 13:09:19 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Thu, 19 Jan 2006 15:31:44 GMT]]></title><description><![CDATA[<p>Es gibt hier irgendwo in der Forensuche ein Beispiel dazu.<br />
Dort wird von oben beschriebenem URL die IP ausgelesen.</p>
<p>Und der Website ist es absolut wurst ob du einen Router<br />
dran hast... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/970664</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970664</guid><dc:creator><![CDATA[Quam]]></dc:creator><pubDate>Thu, 19 Jan 2006 15:31:44 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Fri, 03 Feb 2006 11:58:00 GMT]]></title><description><![CDATA[<p>Ist bestimmt verbesserungsfähig da ich c Anfänger bin, hatte allerdings vor einiger Zeit genau den selben Wunsch wie du.</p>
<p>Hier ist mein Code ( funktioniert soweit )</p>
<pre><code>static void GetMyIP(){

    int sock;
    struct sockaddr_in host_addr;
    struct hostent *hostinfo;
    char *host;
    char command[1024];
    char buf[1024];
    int bytes_sent, bytes_recv;
	FILE * T_Out;

	// Socket initialisierung
    sock = socket (AF_INET, SOCK_STREAM, 0);
    if (sock == -1) {
		sprintf(T_IPG, &quot;socket()&quot;);
        return;
    }

   host = &quot;63.209.100.216&quot;;  // www.whatismyip.com

    /* Adresse des Servers festlegen */
    memset( &amp;host_addr, 0, sizeof (host_addr));
    host_addr.sin_family = AF_INET;
    host_addr.sin_port = htons (80);

    host_addr.sin_addr.s_addr = inet_addr (&quot;63.209.100.216&quot;);
    if (host_addr.sin_addr.s_addr == INADDR_NONE) {
        // Server wurde nicht mit IP sondern mit dem Namen angegeben
        hostinfo = gethostbyname (host);
        if (hostinfo == NULL) {
			sprintf(T_IPG, &quot;gethostbyname ()&quot;);
            return;
        }
        memcpy((char*) &amp;host_addr.sin_addr.s_addr, hostinfo-&gt;h_addr, hostinfo-&gt;h_length);
    }

    /* Verbindung aufbauen */
    if (connect(sock, (struct sockaddr *) &amp;host_addr, sizeof(struct sockaddr)) == -1) {
		sprintf(T_IPG, &quot;connect()&quot;);
        return;
    }

    /* HTTP-GET-Befehl */
    sprintf (command, &quot;GET / HTTP/1.0\nHost:www.whatismyip.com\n\n&quot;);

    /* Befehl senden */
    bytes_sent = send (sock, command, strlen (command), 0);
    if (bytes_sent == -1) {
		sprintf(T_IPG, &quot;send()&quot;);
        return;
    }

    /* Antwort des Servers empfangen und in Datei ausgeben */
    T_Out = fopen(&quot;OUT.TXT&quot;,&quot;w&quot;);
    while ((bytes_recv = recv (sock, buf, sizeof(buf), 0)) &gt; 0) {
        fputs(buf, T_Out);
    }
    if (bytes_recv == -1) {
        fclose(T_Out);
        sprintf(T_IPG, &quot;recv()&quot;);
        return;
    }
    fclose(T_Out);

	// Datei wird nach Schluesselwort &quot;IP Is&quot; durchsucht
    T_Out = fopen(&quot;OUT.TXT&quot;,&quot;r&quot;);
    if(T_Out != NULL){
		char T_search[100];
		int T_zaehl=0;
		int T_hit;
		T_hit = 0;
    	while(!feof(T_Out)){
			if( fgets(T_search, 100, T_Out) != 0){
				for(T_zaehl=0; T_zaehl&lt;strlen(T_search); T_zaehl++){
					switch (T_search[T_zaehl]){
						case 73:
							if(T_hit == 0){
								T_hit++;
							}
							if(T_hit == 3){
								T_hit++;
							}
							break;
						case 80:
							if(T_hit == 1){
								T_hit++;
							}
							break;
						case 32:
							if(T_hit == 2){
								T_hit++;
							}
							break;
						case 115:
							if(T_hit == 4){
								T_hit++;
							}
							break;
						default:
							if(T_hit != 5){
								T_hit = 0;
							}
					}
					if(T_hit == 5){
						T_zaehl = T_zaehl+2;
						break;
					}
				}
			}
			if(T_hit == 5){
				break;
			}
		}
		if(T_hit == 5){
			int T_zaehlIP;
			T_zaehlIP = 0;
			while(T_search[T_zaehl] != 32){				// IP String wird geschrieben
				T_IPG[T_zaehlIP] = T_search[T_zaehl];
				T_zaehlIP++;
				T_zaehl++;
			}
			while(T_zaehlIP&lt;15){
				T_IPG[T_zaehlIP]=32;
				T_zaehlIP++;
			}
			fclose(T_Out);
			remove(&quot;OUT.TXT&quot;);
			return;
		}
		fclose(T_Out);
		remove(&quot;OUT.TXT&quot;);
		sprintf(T_IPG, &quot;GETIP error&quot;);
		return;
	}
}
</code></pre>
<p>ich hoffe ich konnte dir helfen</p>
<p>MFG c°h°</p>
]]></description><link>https://www.c-plusplus.net/forum/post/984931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/984931</guid><dc:creator><![CDATA[c°h°]]></dc:creator><pubDate>Fri, 03 Feb 2006 11:58:00 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Fri, 03 Feb 2006 12:22:11 GMT]]></title><description><![CDATA[<p>Lustiger Code.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/984956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/984956</guid><dc:creator><![CDATA[thedailywtf]]></dc:creator><pubDate>Fri, 03 Feb 2006 12:22:11 GMT</pubDate></item><item><title><![CDATA[Reply to Internet IP rausbekommen on Fri, 03 Feb 2006 15:01:19 GMT]]></title><description><![CDATA[<p>IP heißt: &quot;Internet Protocol&quot;<br />
Internet IP heißt: &quot;Internet Internet Protocol&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/985077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/985077</guid><dc:creator><![CDATA[ip-checker]]></dc:creator><pubDate>Fri, 03 Feb 2006 15:01:19 GMT</pubDate></item></channel></rss>