Remix.run Logo
denkmoon 15 hours ago

Dynamic IP. Hard coding an address is exactly what we want to avoid.

kccqzy 15 hours ago | parent [-]

Let's go one level deeper. Why do you need dynamic IP in your own private network?

jwiz 15 hours ago | parent | next [-]

There is a dynamic IP on the external address, from their ISP.

NhanH 15 hours ago | parent [-]

Yeah but you don't use the external IP for the purpose of accessing your VPN (not via a DNS record anyway). I am also unclear on the purpose of the dynamic DNS.

yjftsjthsd-h 14 hours ago | parent | next [-]

Your external IP is dynamic because the ISP can rotate it. You want to reach your home's external IP to VPN in. One common way is to create a public DNS record that's dynamically updated (by a cronjob or whatever) to always contain whatever IP your ISP last handed you.

Salgat 11 hours ago | parent [-]

That's what I do. Just a cronjob on my TrueNAS server to query my IP and update my subdomain's A record if my IP has changed. That way when a power outage happens and my IP gets rotated, it makes no difference.

ww520 14 hours ago | parent | prev | next [-]

How do you connect your VPN with your phone when you travel on the road?

14 hours ago | parent [-]
[deleted]
denkmoon 11 hours ago | parent | prev [-]

Really?

Imagine, if you will, the following scenario: I have a wireguard endpoint on my home router. The home router uses a residential ISP connection and I don't want to pay $10/mo for a static IP because my ISP is cheeky and expensive. I want to have my phone connect to said wireguard endpoint to establish a secure link. I don't want to have to change my wireguard configuration on my phone every time my home IP changes.

So, I set my phone to peer with the wireguard endpoint on `home.denk.moon:1234`. Every time my home router's external IP changes, it sends a dynamic DNS update to my DNS server such that `home.denk.moon` reflects the new IP for my router. Now, whenever my phone attempts to connect to wireguard, it will resolve that domain name, get the latest IP for my router, and connect.

rkagerer 14 hours ago | parent | prev [-]

To find your private network when you're away and plugged into a public one and the former's IP may have changed. I gather the OP is talking about discovering their public-facing address, not doling out IP's on their internal VPN.

Don't ask next "Why do you need to know your home IP address?"