Self-hosted blog - do I need a static IP address?
Self-hosted blog - do I need a static IP address?
hi everyone,
I was just about to self-host a Ghost blog but then was warned that my ISP might change my external IP address at any time, so I would need to pay for a static IP address.
Is that true?
(I'd not seen much about that in stuff I've looked up so far about self hosting)
You only need a static address for hosting email or VoIP.
You can do just about everything else with DDNS (dynamic DNS). However with DDNS, you will have downtime until the DDNS update takes effect and propagates to clients. This can be seconds... or hours. Depends on the DDNS service and TTLs that they set and how quickly your script/DDNS client works to push the update out.
You should check how often your address changes and check how quickly your DDNS solution pushed the update out. If it's 10 seconds every 10 months, you will likely find that perfectly acceptable. If it's an hour every other sunday... maybe not. But only you will know how much downtime you can tolerate.
I always will take static IP personally. But it's not technically required and you can work around it if you want to save the 10-15$/month.
Edit: You could also argo tunnel if you're okay using cloudflare. But I don't think that answer is particularly in scope of the question. But just in case it's useful to someone out there I'm adding this edit. Doesn't fix the PTR requirement for Email and VoIP stuff though.
I run an smtp relay exactly for that kind of stuff with emails. Clients still like wordpress and this is easy to use, many other will accept an smtp relay/service like say gmail (the first one I could think of)
Yeah that's another option as well... Services like dynu.com or smtp2go.com do exist... but you have to pay for them and there is a risk that the service can open/read your messages.
Email works fine with non-static IP addresses. I suspect VoIP does too.
No it does not. You need an active PTR record for email to work for most of the major carriers (Gmail, O365, etc...). Many providers will just outright block consumer IP ranges as well.
You cannot host an email server on dynamic addresses.
Edit: And you've edited in the VoIP part of your comment... Same thing there, you need PTR and such for those services to work well... Which generally can't be assigned to dynamic addresses.
"works fine" as in you can pretend it works, but you will get filtered by any larger email provider.