Just curious; what happens if I reboot my router and get a new public ip? Of course, all my nodes disconnects and then reconnects. However, will they be shunned, because their ip has changed? Or does the new ip distribute to the network gracefully?
Of course, I could test this, but I’d rather ask first
Nodes are identified by their XOR address.
There will be a time when other nodes have to update their routing tables to have the new IP address, but this should happen as your node contacts them for something.
I’d expect some issues but hopefully not too much. At this time it is extremely hard to get shunned anyhow.
In previous networks one person used mobile connection and was able to move across town with it dropping out.
Some ISPs will give you the same IP address as long as it hasn’t been too long since you restarted the router. My ISP is like 24 hours, or days, not sure. But my nodes returned fine after a 48 hour blackout here during the cyclone about 8 days ago.
One thing, I guess the nodes won’t renew uPnP port forward without restart..
Not sure, when I asked a question a long while ago, the response suggested they renewed the upnp “connection” regularly. Maybe you can try it out and see if its the case
Tried, waited ~10 minutes, did not refresh. I guess there is some lease time, but don’t know how long.
The UpNP is a lease with a timeout, but renews. AFAIK if the router itself changes IP address UpNP will update the forwarding in most cases, so you would see it as invisible but the network nodes would see a new EP (Endpoint) when you speak to them. Some will have declared you dead and killed you off, but you should be able to continue pretty much as normal while your routing table sorts itself out.
Yes, but if I reboot the router, it will lose all the upnp forwarded ports. The nodes does not see this, so they appear to work, but actually cannot response to incoming connections.
Not sure if this is an issue, quite expected behaviour. But nevertheless, the nodes might recognize the downtime and make a new upnp request and thus recover.
Yes, rebooting the actual router may need you to restart the nodes to get new connections