<p>I'm studying the bitcoin source code and I have a doubt about if: Bitcoin nodes <strong>still</strong> follow the methods explained at the "Satoshi Client Node Discovery" wiki page?</p>

<p>More specifically, if they follow the explained local client's external address discovery method using external websites.</p>

<p>I didn't find any references/evidence of web requests being made to the ip address 91.198.22.70 or the checkip.dyndns.org web address in the code.</p>

<p>Was it removed at some point in time?</p>

<p>The Bitcoin source code version in question is the master branch at 2018/05/04 (v0.16).</p>

<p>Thanks in advance. </p>

<p><a href="https://github.com/bitcoin/bitcoin" rel="nofollow noreferrer">GitHub Bitcoin</a></p>

<p><a href="https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery#Local_Client.27s_External_Address" rel="nofollow noreferrer">Satoshi Client Node Discovery</a></p>

CC BY-SA 4.0
2018-05-04T12:33:48.000Z
This is used currently: https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp#L1499
MCCCS
CC BY-SA 4.0
2018-05-04T13:53:10.373Z
@MCCCS Thks for your reply. Is it only done by UPnP? A lot of routers have the UPnP disabled.
Pedro Simões
CC BY-SA 4.0
2018-05-04T15:25:32.410Z
Yes, only UPnP. You can see the implementation here: https://github.com/miniupnp/miniupnp/blob/a4af4a66b2ce7e35b51944192e1045b16c8b082c/miniupnpc/upnpcommands.c#L299
MCCCS
<bitcoin-core><bitcoin-core-development>
How do bitcoin nodes know their own external IP address?
Pedro Simões
# How do bitcoin nodes know their own external IP address?

(Asked by: username_0 on 2018-05-04)

I'm studying the bitcoin source code and I have a doubt about if: Bitcoin nodes **still** follow the methods explained at the "Satoshi Client Node Discovery" wiki page?

More specifically, if they follow the explained local client's external address discovery method using external websites.

I didn't find any references/evidence of web requests being made to the ip address 91.198.22.70 or the checkip.dyndns.org web address in the code.

Was it removed at some point in time?

The Bitcoin source code version in question is the master branch at 2018/05/04 (v0.16).

Thanks in advance.

[GitHub Bitcoin](https://github.com/bitcoin/bitcoin)

[Satoshi Client Node Discovery](https://en.bitcoin.it/wiki/Satoshi_Client_Node_Discovery#Local_Client.27s_External_Address)

**Tags:** bitcoin-core, bitcoin-core-development

> **Comments:**
> **username_1**: This is used currently: https://github.com/bitcoin/bitcoin/blob/master/src/net.cpp#L1499  
> **username_0**: @username_1 Thks for your reply. Is it only done by UPnP? A lot of routers have the UPnP disabled.  
> **username_1**: Yes, only UPnP. You can see the implementation here: https://github.com/miniupnp/miniupnp/blob/a4af4a66b2ce7e35b51944192e1045b16c8b082c/miniupnpc/upnpcommands.c#L299  

---

## 0 answers

