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)

  • @Sliversun@lemmy.world
    link
    fedilink
    English
    02 months ago

    Some of the other options are cloud flare tunnel or ddns that would give you static ip effect without static ip

  • @non_burglar@lemmy.world
    link
    fedilink
    English
    0
    edit-2
    2 months ago

    Whether your ip changes frequently depends on your ISP, but it’s not necessary to have a static ip. My public IP changes about once a year, but I use my router to update my dns and make ally external services rely on DNS and not IP to connect.

    You can also do this, look up “dynamic DNS”. You just need to register a DNS name (can be free) and set up the updates to make it accurate.

  • @iii@mander.xyz
    link
    fedilink
    English
    02 months ago

    It makes things easier, but you have options, such as:

    1. dynamic dns.
    2. Public reverse proxy or tunnel.
    3. Onion routing.
  • slazer2au
    link
    fedilink
    English
    02 months ago

    You don’t need one, but it does make things easier.

    What you can use is something like Dynamic DNS to update your DNS record if your IP ever changes.

    • Saik0
      link
      fedilink
      English
      02 months ago

      You come to a post on SELFHOSTED@lemmy.world… And downvote everyone posting relevant discussion then post “USE CLOUD”.

  • Matt
    link
    fedilink
    English
    02 months ago

    No, you don’t. Use Tailscale to expose your blog.

  • fmstrat
    link
    fedilink
    English
    02 months ago

    How are you hosting? And do you have a domain? Lot’s of good advice here, but knowing if you’re running on a Pi, in Docker, etc, would help others give you the easiest/best method.

    In short, you do not need a static IP.

    • @Paddy66@lemmy.mlOP
      link
      fedilink
      English
      02 months ago

      Hi, I’m using Docker - one container for Ghost and one for Nginx Proxy Manager.

      I’ve decided to go with DDNS but am having trouble choosing a reliable free provider. I’ve seen Dynu.com recommended but that is not available in the dropdown list of servers in my router’s section on DDNS. Is that relevant?

      Or would I just ignore the router settings and set it up some other way?

      • fmstrat
        link
        fedilink
        English
        02 months ago

        Cloudflare is a good choice. I used DNSExit for a while, and also NS1, but settled on Cloudflare. You don’t have to use their proxying, just DNS.

        Here’s a Docker Compose for you that will set myhost.mydomain.com to point to your public IP of wherever it is run:

        dyndns-cloudflare:
            image: oznu/cloudflare-ddns
            container_name: dyndns-cloudflare
            environment:
              - API_KEY=<key>
              - ZONE=mydomain.com
              - SUBDOMAIN=myhost
              - PROXIED=false
            restart: unless-stopped
        
      • @RecitalMatchbox@lemmy.world
        link
        fedilink
        English
        0
        edit-2
        2 months ago

        I’m having a good experience with cloudflare, using ddclient on a cron job

        To clarify: it doesn’t matter much what your router supports if you have a server with ddclient (possibly in Docker container). Then you can choose whatever provider you’d like, and there are tons of resources on ddclient.

        • @Paddy66@lemmy.mlOP
          link
          fedilink
          English
          02 months ago

          If I install ddclient on my mini-pc is that what you mean by having a server with ddclient?

          My Asus router is not shown in their docs as supported - does that matter?

          Also - can I just keep using my current domain name registrar, and not use Cloudflare?

  • emon
    link
    fedilink
    02 months ago

    @Paddy66 it depends.

    I host everything, including website and email server behind a regular dynamic ip for years.

    And no I don’t get block by any gafam.

    But I am lucky because my ISP doesn’t change that often (maybe twice a year). And my domain provider provides an API that my ISP router can use to update my IP automatically.

    It may work, it may not :)

      • emon
        link
        fedilink
        02 months ago

        @curry after i setup everyrthing I had no deliverability issue. But i had to use an external SMTP relay because of my isp filtering traffic on port 25. That adds an extra fixed IP layer that may provide a better IP reputation idk. I rent a cheap 1.2€/month vps for that purpose.
        I get listed in spamhaus because of a dynamic IP, but my relay isn’t listed (at least not in not scam blocklist). Anyway I send mail, to gafam or whatever and people reply back.
        I send 2-3 mails a week, maybe it counts.

  • K3CAN
    link
    fedilink
    English
    02 months ago

    I selfhost my blog without a static IP. You just need Dynamic DNS.

    Keep in mind that your outbound bandwidth might be different from your inbound. I get 300mbps in, but only 5mbps out. It’s not noticeable during normal Internet use, but as you start sharing content publicly, limited bandwidth becomes really noticeable.

    • @Dultas@lemmy.world
      link
      fedilink
      English
      02 months ago

      Don’t even need dynamic DNS. Just use ddclient to update your DNS record if your IP changes.

      • K3CAN
        link
        fedilink
        English
        02 months ago

        That’s called dynamic DNS (it’s the dd in ddclient).

  • @some_guy@lemmy.sdf.org
    link
    fedilink
    English
    02 months ago

    You can rent a virtual private server (VPS). I used to have a number of these for under $10 / month. I imagine they might cost more now., but chances are you can still find something super affordable.

    Wordpress.org will let you have a free site but you don’t get a custom domain. Wordpress.com has a personal plan for $4 / month. Matt Mullenweg (CEO) has revealed himself to be a crazy piece of shit, so maybe look elsewhere. I’m just trying to give you a sense of how accessible this stuff can be.

    Running a VPS will require more learning, but it can be super gratifying if you enjoy nerdy computer stuff and solving puzzles just for self-satisfaction. I used to use Rackspace, Linode, and something else that I can’t recall at the moment. All were pretty reasonable. Rackspace had a ton of good setup guides for newbies that were well written. I’d occasionally land on those doing a web search for other hosting stuff and found them reliable.

  • @hperrin@lemmy.ca
    link
    fedilink
    English
    02 months ago

    As others have said, you can use dynamic DNS, but you also might have an IPv6 address that doesn’t change. Or maybe it does, you’ll have to check with your ISP. But that one can be set up as an AAAA record in your DNS.

    Most ISPs support IPv6, but some don’t, so you might not be accessible to everyone without also having an A record.

    • @sem@lemmy.blahaj.zone
      link
      fedilink
      English
      0
      edit-2
      2 months ago

      I recommend afraid.org, you get everything that you need for free dynamic dns, and they’re a cool project so someday you may like to do even more with them or send them a little donation.

      I started with noip first, and the monthly re-up was so annoying.

  • 3dcadmin
    link
    fedilink
    English
    02 months ago

    Personally I would look at using a tunnel, something like Cloudflare tunnels (easy to setup, sorts dns out) but many here dislike Cloudflare for a lot of reasons. However the free plan allows you to get started, easily, and then once you are started and serving your blog you can look into other solutions, or failing that stay on Cloudflare. Other tunnels exist but if you have a domain, using cloudflare is the easiest imho to get started

  • @darkan15@lemmy.world
    link
    fedilink
    English
    0
    edit-2
    2 months ago

    As others have already commented, what you need is a Dynamic DNS service, where you register a subdomain, and setup a small program or script on your computer that pings the DDNS server every few minutes, that way you leave that running on the background, and if the program detects that the IP with the request changes, it will update the subdomain to point to it automatically.

    You could access the blog from the subdomain of the DDNS directly or if you get your own domain, you can point it to the DDNS.

    If you want a recommendation, I have been using DuckDNS for years, and it has been pretty reliable.

    • mbirth 🇬🇧
      link
      fedilink
      English
      02 months ago

      There’s also FreeDNS. Their only ask is that you log into the account once every 6 months so they know you’re still using it.