It'd be nice if there was a -externalip=123.45.6.7 option in case your ISP is doing something wonky with requests to whatismyip.com
Option to specify external IP address #15
issue gavinandresen opened this issue on December 22, 2010-
gavinandresen commented at 2:59 PM on December 22, 2010: contributor
-
j16sdiz commented at 1:09 AM on January 14, 2011: none
Does bitcoin use whatismyip.com ? I have read some code, it seems to be using the external address reported by IRC, which should be quite reliable.
-
dooglus commented at 11:26 PM on January 21, 2011: contributor
net.cpp uses: addrConnect = CAddress("91.198.22.70:80"); // checkip.dyndns.org and addrConnect = CAddress("74.208.43.192:80"); // www.showmyip.com if it wasn't able to get the external IP address from IRC within 2 minutes.
Note it hard-codes the IP addresses of those 2 sites too, which is probably not ideal.
-
ghost commented at 9:34 AM on May 3, 2011: none
I think that option to specify external port is needed too. For NAT users for examle!
-
zellfaze-zz commented at 7:21 PM on June 13, 2011: none
I agree. What happens if those sites go down or change their addresses? Or what happens if you are behind a restrictive firewall or ACL?
- laanwj referenced this in commit 872b1f3e4c on Sep 18, 2011
-
sipa commented at 7:46 PM on February 19, 2012: member
I've added this functionality to my multilocal branch (#829)
-
jgarzik commented at 9:29 PM on July 5, 2012: contributor
Implemented, as -externalip
- jgarzik closed this on Jul 5, 2012
- justmoon referenced this in commit 41ab43734e on Apr 7, 2014
- rebroad referenced this in commit 212015e2e0 on Jul 21, 2014
- rdponticelli referenced this in commit 32b60cb5fb on Nov 26, 2014
- MarcoFalke referenced this in commit 589f4b6be0 on Dec 1, 2015
- MarcoFalke referenced this in commit 734b3d8e28 on Dec 2, 2015
- MarcoFalke referenced this in commit 982709199f on Dec 2, 2015
- ptschip referenced this in commit 03ee948a5a on Mar 22, 2016
- braydonf referenced this in commit bd8328ceb9 on Jun 13, 2016
- Christewart referenced this in commit 22f7ca71db on Jun 29, 2017
- AkioNak referenced this in commit 39b76ef9cb on Jul 26, 2017
- MarcoFalke referenced this in commit fd448da526 on Sep 29, 2017
- MarcoFalke referenced this in commit ccf35754f1 on Sep 29, 2017
- CryptAxe referenced this in commit ef5864cb06 on Dec 28, 2017
- nining referenced this in commit 2f5fe4c15b on Jan 3, 2018
- MarcoFalke referenced this in commit 1fcd1e7de0 on Feb 16, 2018
- MarcoFalke referenced this in commit 835a21b424 on Feb 16, 2018
- Willtech referenced this in commit 99ac3defdd on Feb 23, 2018
- hkjn referenced this in commit 4c50fe065c on Feb 23, 2018
- KrzysiekJ referenced this in commit de1a0db4cf on Mar 28, 2018
- effectsToCause referenced this in commit a0c1dd180a on Jun 22, 2018
- Anfauglith referenced this in commit 721ec32f1e on Sep 27, 2018
- lionello referenced this in commit ad794831e1 on Nov 7, 2018
- DigiGreenCoin referenced this in commit e97b77d123 on Oct 29, 2019
- laanwj referenced this in commit b586bbd558 on Nov 6, 2019
- laanwj referenced this in commit 97b66d34eb on Nov 7, 2019
- laanwj referenced this in commit e9c85bb139 on Nov 7, 2019
- laanwj referenced this in commit c92f7af618 on Nov 7, 2019
- laanwj referenced this in commit 656712fe94 on Dec 9, 2019
- laanwj referenced this in commit 4abd92d5c4 on Dec 12, 2019
- laanwj referenced this in commit 89c8fe5189 on Jan 2, 2020
- laanwj referenced this in commit 66480821b3 on Jan 28, 2020
- laanwj referenced this in commit 31bdd86631 on Jul 15, 2020
- KolbyML referenced this in commit bcaba640a9 on Aug 1, 2020
- KolbyML referenced this in commit fa43fa1a9c on Sep 4, 2020
- jonasschnelli referenced this in commit 9453fbf5a0 on Oct 22, 2020
- laanwj referenced this in commit 924a4ff7eb on Oct 29, 2020
- jonasschnelli referenced this in commit c45e1d9aa7 on Nov 20, 2020
- MarcoFalke referenced this in commit bce09da122 on Apr 28, 2021
- MarcoFalke referenced this in commit eb9a1fe037 on May 7, 2021
- MarcoFalke referenced this in commit c857148636 on May 15, 2021
- rajarshimaitra referenced this in commit ac083dec34 on Aug 5, 2021
- DrahtBot locked this on Sep 8, 2021