4 ms·
I'm not sure how you do this unless you have a static IP somehow? In my experience ISPs don't offer that to residential clients
by warent 6y ago
I'm not sure how you do this unless you have a static IP somehow? In my experience ISPs don't offer that to residential clients
- tenebrisalietum 6y agoThere are "Dynamic DNS" services (a good free one used to be DynDNS in the 00's) that will take an API call from your home system and update a DNS with it. Many routers have support for this and if your router runs dhcpcd you can tell it to issue the call when it renews the DHCP lease from your ISP, or simply cron job it.
- derefr 6y agoNote that you don't need a marketed-as-"dynamic DNS" provider to have dynamic DNS. You just need a DNS provider with an API. Cloudflare has a DNS API. So if you search "Cloudflare DDNS" you'll find five or six different Github projects (some binaries, some scripts) you can run on any box in your house (maybe a Pi?) that'll do your DDNS through them. (You don't need your router to run a DDNS client, even though routers make it seem like a router-exclusive feature. The only thing your router knows that your LAN doesn't is your network's external IP address. But a DDNS client can just hit an external reflector endpoint for that.)
- garaetjjte 6y agoFrom my experience most ISPs don't give publicly routable addresses anymore, just throwing everybody behind CGNAT (currently I pay extra 3$ monthly fee for static routable IP, but not all providers offer it). And IPv6 is usually still not deployed.
- greg5green 6y agoIn the US, it's pretty rare to be behind CGNAT or not have IPv6. We're lucky in that regard.
- bscphil 6y agoAs the other comment says, I've never seen CGNAT in the US. I'm sure it's deployed in some cases, but I've never had to deal with it. I'm confused about it though. For some applications and games you need to connect peer-to-peer for them to work correctly. How is it possible to connect to a peer with some random port open (e.g. 48295)? It doesn't seem like the ISP could know that the request was aimed at you, if something like UPnP isn't being used. Or does CGNAT simply disable all incoming connections, breaking p2p applications entirely?
- NickNameNick 6y agoSome systems use an internet service to coordinate nat-traversal/hole punching. Other systems just don't work.
- 29083011397778 6y agoThey don't, but my ISP-provided modem/router combo has built-in integration with a dynamcic DNS service. If your domain name follows whatever your IP is, it's close enough to static (at least for my uses)
- foobar33333 6y agoAlternatively, you can use cron/systemd timers to update the domain minutely.
- ForHackernews 6y agoSome ISPs do offer static IPs to residentials users (many of the top 10 here https://www.ispreview.co.uk/review/top10.php https://www.ispreview.co.uk/review/top10.php) As IPv6 becomes more widely adopted, there will be no need to conserve IP addresses and everyone can be allocated a block of them.
- bombcar 6y agoMy IP and a friends have been the same for five+ years even though it’s technically dynamic. DYDNS hasn’t really done much.
- nextlevelwizard 6y agoIn my experience IP addresses rarely change from under you. There has to be actual noticeable outage of service. But in that case you can just use any of the free dynamic dns services. Back in the day I didn’t even have proper domain name I just used dyndns