Bitcoin Forum
May 11, 2024, 07:40:22 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: GetMyExternalIP() why, and what happens if down ?  (Read 1699 times)
Nicolas Dorier (OP)
Hero Member
*****
Offline Offline

Activity: 714
Merit: 621


View Profile
April 20, 2014, 04:36:00 PM
 #1

I see that GetMyExternalIp() is hard coded to query www.showmyip.com and checkip.dyndns.org to get the IP of the bitcoin node.

Now there is two things I don't understand :

Why doing that ?
A recieving Bitcoin node could easily use the IP packet to get the IP of the sender, instead of that, it seems to rely on the addr_from of the Version message payload.

And what happens if both showmyip and checkip dyndns are down ? (At my home showmyip does not work)
Does most of the miners will be unable to communicate leading to a bitcoin apocalypse ?

Second, out of topic, how can I remove this ******* time limit that say I can't post on this forum because I already did it just before altough it is not true.

Bitcoin address 15sYbVpRh6dyWycZMwPdxJWD4xbfxReeHe
1715413222
Hero Member
*
Offline Offline

Posts: 1715413222

View Profile Personal Message (Offline)

Ignore
1715413222
Reply with quote  #2

1715413222
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715413222
Hero Member
*
Offline Offline

Posts: 1715413222

View Profile Personal Message (Offline)

Ignore
1715413222
Reply with quote  #2

1715413222
Report to moderator
1715413222
Hero Member
*
Offline Offline

Posts: 1715413222

View Profile Personal Message (Offline)

Ignore
1715413222
Reply with quote  #2

1715413222
Report to moderator
tholenst
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
April 20, 2014, 05:59:15 PM
 #2

See https://github.com/bitcoin/bitcoin/pull/3461 and https://github.com/bitcoin/bitcoin/pull/3088 for work on changing this.
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8419



View Profile WWW
April 20, 2014, 08:04:12 PM
 #3

Very little happens at all if it doesn't work. It's only used for hosts which are behind nat, which don't use UPNP to learn their address, and which don't have a manually configured address. These addresses are only used for announcing to other peers what addresses they can connect to.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!