Hacker News new | ask | show | jobs
by sirtoffski 2363 days ago
I’ve got a VPN server on a machine which gets a public IPv4 address via DHCP. Once in a while it changes. Instead of using something like DDNS, I just have a script running via chron to get my public address and send it to a GitHub gist.

If VPN stops working, I can always check to see if the address changed. May not be the best solution, but it works for me.

Script itself: https://sirtoffski.github.io/docs/my-pub-ip

2 comments

curious, what purpose is vpn for assuming you host it for yourself only?
I installed one for myself only too.

But it’s more like a proxy to be geolocalized in France (some services block foreign IPs) when I’m not.

Pretty handy.

I have one. I use it to access services and machine on the network.
...or ZeroTier