Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WP5aA-0005Fe-Vo for bitcoin-development@lists.sourceforge.net; Sun, 16 Mar 2014 07:34:07 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of samtheham.org designates 209.85.214.180 as permitted sender) client-ip=209.85.214.180; envelope-from=sam@samtheham.org; helo=mail-ob0-f180.google.com; Received: from mail-ob0-f180.google.com ([209.85.214.180]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1WP5a8-0004qx-E6 for bitcoin-development@lists.sourceforge.net; Sun, 16 Mar 2014 07:34:06 +0000 Received: by mail-ob0-f180.google.com with SMTP id wn1so4336840obc.11 for ; Sun, 16 Mar 2014 00:33:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=lgy/3J4Xu9gcNqycSRQskOf4XfbLc/8PK5YIAFlsI0Q=; b=eazl6A9rjsVbeMKTQUkc9iD+kx1it6t/zDi+chicCd5qrMfHbplAa11mwfyvDosi7/ IpwBJc0M42XpWkXTOjWHMJzPBv3kGop/YUe8QMFX0fyGS2PoJl/m2aggg6zxmig9zK9L 2bro71ZsS25KBcj37hsQX48q4dUWllis1lVfM3/OPi26jaagJ72CQIw9f+hY62n3zNuC IaicbBM2WqviL8cdPuPk7gVPidt7K6Ny/4PaRcc8Z/4jVq1iRYw7PuoNEGO1GzZG8FAW PBv7pFOcejWAuIxtCAommz2lGUxvFSrjh1duRUPNWOsQP7QR7/QcGmh7OlXdujmP3I2l f8Cw== X-Gm-Message-State: ALoCoQkbLFboEOhhSHwyooxHii+gaf3enVHX9t6crKbHFN7lLjwqwhupnKJIhrLMPsJx0Zxh5EVW MIME-Version: 1.0 X-Received: by 10.60.141.105 with SMTP id rn9mr15019751oeb.27.1394953453445; Sun, 16 Mar 2014 00:04:13 -0700 (PDT) Received: by 10.60.82.225 with HTTP; Sun, 16 Mar 2014 00:04:13 -0700 (PDT) Date: Sun, 16 Mar 2014 02:04:13 -0500 Message-ID: From: Sam Michaels To: bitcoin-development@lists.sourceforge.net Content-Type: multipart/alternative; boundary=047d7b2e55ae12373804f4b3e995 X-Spam-Score: -0.2 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record 0.3 URIBL_RHS_DOB Contains an URI of a new domain (Day Old Bread) [URIs: bitcheck.us] 1.0 HTML_MESSAGE BODY: HTML included in message X-Headers-End: 1WP5a8-0004qx-E6 Subject: [Bitcoin-development] External IP Address X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 07:34:07 -0000 --047d7b2e55ae12373804f4b3e995 Content-Type: text/plain; charset=ISO-8859-1 Hello devs. I was poking around in the code for a small project and I came across the function GetMyExternalIP() in net.cpp. The comment says you'd like to phase out the current method. I threw together exactly what was asked in the comments: it's a site that has PHP echo the IP address. Additionally, it captures the IP, user agent, and time for analysis (a client with the same IP and user agent just updates the entry). The site for the client is: ip.bitcheck.us. It does a quick search for "Mozilla" in the user agent to redirect browers that go there. The following information is sent: --- GET / HTTP/1.1 Host: ip.bitcheck.us User-Agent: /Satoshi:0.8.6/ Connection: close --- And following is received: --- HTTP/1.1 200 OK Date: Sun, 16 Mar 2014 05:31:51 GMT Server: Apache mod_fcgid/2.3.10-dev X-Powered-By: Satoshi v1.0 X-Client-Update: yes Content-Length: 9 Connection: close Content-Type: text/html 127.0.0.1 --- You can look for X-Client-Update to see if the check in was logged. Other information can be passed in the header, too. Errors are trapped so that it will always display the IP address and any error information is contained in the headers. Hope you find this useful. Sam --047d7b2e55ae12373804f4b3e995 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello devs.

I was poking around in the = code for a small project and I came across the function GetMyExternalIP() i= n net.cpp. =A0The comment says you'd like to phase out the current meth= od.

I threw together exactly what was asked in the comments= : it's a site that has PHP echo the IP address. =A0Additionally, it cap= tures the IP, user agent, and time for analysis (a client with the same IP = and user agent just updates the entry).

The site for the client is: ip.bitcheck.us. =A0It does a quick search for "Mozilla"= ; in the user agent to redirect browers that go there.

The following information is sent:

---
<= div>GET / HTTP/1.1
User-Agent: /Satoshi:0.8.6/
Connection: cl= ose
---

And following is received:

=
---
HTTP/1.1 200 OK
Date: Sun, 16 Mar 2014 0= 5:31:51 GMT
Server: Apache mod_fcgid/2.3.10-dev
X-Power= ed-By: Satoshi v1.0
X-Client-Update: yes
Content-Length: 9
Connection:= close
Content-Type: text/html

127.0.0.1=
---

You can look for X-Client-Update to= see if the check in was logged. =A0Other information can be passed in the = header, too.

Errors are trapped so that it will always display the I= P address and any error information is contained in the headers.
=
Hope you find this useful.

Sam
--047d7b2e55ae12373804f4b3e995--