Do you need a domain name if you are hosting a Lemmy instance, or will it work fine with just an ip-address + port (e.g. <username>@<ip-address>:<port>)?

  • Max-P
    link
    fedilink
    English
    271 year ago

    It requires an HTTPS connection, and certificates can only be obtained for domain names. So yes, pretty much.

    Also consider than IPs can change, even if you’re using a hosting provider. Domain names makes changing the IP much easier.

    Domain names can be obtained for as cheap as $3/year for the xyz TLD. If you can’t pay for anything, there’s also free services that can let you get a subdomain, like noip.com, afraid.org, azote.org.

    • andrew
      link
      fedilink
      English
      51 year ago

      The reason being that federation means other instances send you things. It’s not pull-only, or else you could likely get away with private instances sitting behind NAT. But since activitypub involves publishing to inboxes from source to destination, they need some way to reach you. And since we want to validate that connection and that some external authority can vouch for ita ownership, we use TLS Certs with the DNS hostname that matches your server name.

    • @[email protected]
      link
      fedilink
      English
      11 year ago

      Also if you dont mind numbers .xyz domains can be like $1 a year. It has to be only numbers and i think at least 9 digits.

      • @happy_saw
        link
        English
        21 year ago

        Sorry but do you mean that .xyz domains only allow for a numbers only domain name? Because I don’t think that’s true.

        • @[email protected]
          link
          fedilink
          English
          41 year ago

          No i mean if you want a super cheap .xyz domain, its very cheap if you choose a domain that is digits only. For example my lemmy domain is 158436977.xyz. its 89 cents a year.

          You can certainly have xyz domains that are words just like any other.

          • @happy_saw
            link
            English
            2
            edit-2
            1 year ago

            Oh, that is actually a good idea if a cheap domain is wanted.

          • gun/linux
            link
            fedilink
            English
            1
            edit-2
            1 year ago

            What name registrar would you recommend?

            EDIT: found one for 0.85 dollars on namecheap

            EDIT EDIT: for some reason its labeled as a “premium domain” :P

            • @[email protected]
              link
              fedilink
              English
              11 year ago

              Namecheap is what I use ya. They are also really great if you have some internal services and want just a cheap domain to get SSL certs from LetEncrypt. All my internal traffic is SSL now because why not, its 85 cents a year. And no dealing with self-signed certs.

    • @dustojnikhummer
      link
      English
      11 year ago

      I mean nothing prevents you from using a self signed certificate

      • Bezerker03
        link
        fedilink
        English
        101 year ago

        Is imagine the rest of the fediverse will refuse to connect tho.

        • @dustojnikhummer
          link
          English
          11 year ago

          But wouldn’t that be the certificate of the other instance, not your local one?

          • Bezerker03
            link
            fedilink
            English
            21 year ago

            As others mentioned other things need to connect to your instance so valid ssl matters

          • Matt
            link
            fedilink
            English
            11 year ago

            Since AP servers both accept incoming connections and make outgoing connections, both sides need valid certificates to do HTTPS.

            • @dustojnikhummer
              link
              English
              21 year ago

              Alright, wasn’t aware it needed to be both sides

      • Matt
        link
        fedilink
        English
        21 year ago

        Good luck getting the server connecting to you to trust it!

  • Brendan McKenzie
    link
    fedilink
    English
    41 year ago

    I haven’t dug into the protocol, but I’d imagine communication would be done over HTTPS, which requires a domain.

      • @[email protected]
        link
        fedilink
        English
        41 year ago

        Well, I just learned something, but what does “control” the IP mean? If they are only validating a single address via http then presumably you could just use an Amazon elastic IP as long as it resolves. I doubt that letsencrypt will support that but I would be interested to know. If they do then yeah, you could presumably set up the instance using the IP as the name, but I don’t know why you would want to. Apart from the fact that it would be hard to remember, could change at some point, screwing things up, it might work. I suggest OP do the necessary and report back accordingly.

        • godless
          link
          fedilink
          English
          61 year ago

          but what does “control” the IP mean

          I believe that means you must be registered as the owner with the RIPE or whichever authority is in charge of administrating IP ranges, so that would also negate the point of chaining IP addresses, since that would indeed be a permanent fixture.

          For AWS it should then only work if Amazon Inc. is the applicant for the SSL cert., not merely a user. So it’s a quite theoretical application at best.

          • @[email protected]
            link
            fedilink
            English
            11 year ago

            yes, there had to be catch, although the guy in this letsencrypt support thread is a senior Letsencrypt engineer and he seems to be saying it is possible - although letsencrypt doesn’t support it. I do think you’d have to show a bit more to the issuer to prove ownership than an http acme challenge though.

            • Sergey Kozharinov
              link
              fedilink
              English
              41 year ago

              It doesn’t make a lot of sense for LetsEncrypt to spend time adding support for such certs, since both a domain name and a cert from another CA are cheaper than buying an IPv4 block

  • Matt
    link
    fedilink
    English
    31 year ago

    I can’t imagine it’d work without a domain, as your instance will need to talk HTTPS with other instances.