News for hackers. Stuff that matters.
Re:Ask HN: Cheapest/easiest way to host a static site? by aequitas on Friday March 26, 2021 @04:21PM (#26596477)
Check with your ISP, they often offer some 10 or sometimes 50! MB of free space to host your homepage and images under an account url, eg: http://example.com/~you. Uploading is easy, just FTP your files to their server and your done!

I miss the old days :(

Re:Ask HN: Cheapest/easiest way to host a static site? by Symbiote on Friday March 26, 2021 @04:46PM (#26596729)
The in-between days (after dial-up ISPs, but before "cloud" meant people forgot they could do things themselves) was to host the website on your own computer. For example, an old laptop, a Raspberry Pi, or an always-on-anyway desktop.

I host my personal site this way.

I also host about 100 mostly-static mostly-low-use websites at work similarly: with Apache on a couple of VMs. They are more reliable than the free versions of Netlify etc, and the systems work to maintain 100 static websites is little different to maintaining 5 static websites.

Re:Ask HN: Cheapest/easiest way to host a static site? by warent on Friday March 26, 2021 @05:10PM (#26596982)
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
Re:Ask HN: Cheapest/easiest way to host a static site? by tenebrisalietum on Friday March 26, 2021 @05:14PM (#26597030)
There 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.

Re:Ask HN: Cheapest/easiest way to host a static site? by derefr on Friday March 26, 2021 @05:44PM (#26597330)
Note 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.)

Re:Ask HN: Cheapest/easiest way to host a static site? by garaetjjte on Friday March 26, 2021 @06:09PM (#26597588)
From 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.
Re:Ask HN: Cheapest/easiest way to host a static site? by greg5green on Friday March 26, 2021 @06:19PM (#26597683)
In the US, it's pretty rare to be behind CGNAT or not have IPv6. We're lucky in that regard.
Re:Ask HN: Cheapest/easiest way to host a static site? by bscphil on Friday March 26, 2021 @08:38PM (#26598677)
As 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?

Re:Ask HN: Cheapest/easiest way to host a static site? by NickNameNick on Friday March 26, 2021 @11:36PM (#26599706)
Some systems use an internet service to coordinate nat-traversal/hole punching. Other systems just don't work.
Re:Ask HN: Cheapest/easiest way to host a static site? by 29083011397778 on Friday March 26, 2021 @05:17PM (#26597058)
They 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)
Re:Ask HN: Cheapest/easiest way to host a static site? by foobar33333 on Friday March 26, 2021 @05:50PM (#26597397)
Alternatively, you can use cron/systemd timers to update the domain minutely.
Re:Ask HN: Cheapest/easiest way to host a static site? by ForHackernews on Friday March 26, 2021 @06:32PM (#26597812)
Some ISPs do offer static IPs to residentials users (many of the top 10 here 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.

Re:Ask HN: Cheapest/easiest way to host a static site? by bombcar on Friday March 26, 2021 @10:00PM (#26599180)
My IP and a friends have been the same for five+ years even though it’s technically dynamic. DYDNS hasn’t really done much.
Re:Ask HN: Cheapest/easiest way to host a static site? by nextlevelwizard on Saturday March 27, 2021 @12:50AM (#26600009)
In 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
Re:Ask HN: Cheapest/easiest way to host a static site? by tgiba on Friday March 26, 2021 @04:27PM (#26596529)
OVH offers 10MB hosting when you get a domain with them. With FTP access.
Re:Ask HN: Cheapest/easiest way to host a static site? by stevage on Saturday March 27, 2021 @03:52AM (#26600734)
Then you're locked into your ISP forever.