# How to make my Tor node detect IP address change

**URL:** https://forum.torproject.org/t/how-to-make-my-tor-node-detect-ip-address-change/12514
**Category:** Relay Operator
**Created:** [April 29, 2024, 8:10pm UTC](https://forum.torproject.org/t/how-to-make-my-tor-node-detect-ip-address-change/12514 "2024-04-29T20:10:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Belgarath](https://forum.torproject.org/letter_avatar_proxy/v4/letter/b/278dde/32.png) [@Belgarath](https://forum.torproject.org/u/Belgarath)
#### Post date: [April 29, 2024, 8:10pm UTC](https://forum.torproject.org/t/how-to-make-my-tor-node-detect-ip-address-change/12514/1 "2024-04-29T20:10:22Z")

</div>

Hello,

I have dynamic WAN IPv4 adress from my ISP. They change it roughly once a month.

I have four Raspberry Pi 4’s running Raspbian Bookworm.  
Latest tor version 0.4.8.11

I use ddclient to detect the IP changes and it works, because pinging my hostname afterwards shows the new IP address.

However, how can I make my Tor node detect the new IP address?

In torrc I have  
Address ”hostname”  
ORport ”port number”  
as it should be…

Just ”sudo service tor reload” would’t make the trick.

I have to enter ”sudo service tor restart”.  
And then uptime will be zeroed and the flags HSDIR GUARD disappear. Frustating…

//BR,  
Belgarath

---

<div class="post-metadata">

### Author: ![jarl](https://forum.torproject.org/letter_avatar_proxy/v4/letter/j/6bbea6/32.png) [@jarl](https://forum.torproject.org/u/jarl)
#### Post date: [April 29, 2024, 8:39pm UTC](https://forum.torproject.org/t/how-to-make-my-tor-node-detect-ip-address-change/12514/2 "2024-04-29T20:39:00Z")

</div>

If you don’t set any ip or hostname in your torrc tor should be able to discover your address on it’s own.

---

<div class="post-metadata">

### Author: ![capole](https://forum.torproject.org/letter_avatar_proxy/v4/letter/c/f6c823/32.png) [@capole](https://forum.torproject.org/u/capole)
#### Post date: [April 30, 2024, 9:09am UTC](https://forum.torproject.org/t/how-to-make-my-tor-node-detect-ip-address-change/12514/3 "2024-04-30T09:09:34Z")

</div>

> [@Belgarath](#):
>
> Just ”sudo service tor reload” would’t make the trick.
> 
> I have to enter ”sudo service tor restart”.

This is expected. Remember that reloading a service is as it says, reload the configuration files and apply changes if necessary without stopping the service, since there hasn’t been any changes in the configuration, nothing is done.

> [@Belgarath](#):
>
> However, how can I make my Tor node detect the new IP address?

> **[Can I run a Tor relay using a dynamic IP address? | Tor Project | Support](https://support.torproject.org/relay-operators/dynamic-ip/)**
>
> Defend yourself against tracking and surveillance. Circumvent censorship. | Can I run a Tor relay using a dynamic IP address?
