Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    xip.io - Access any dev App via internal IP using a magic domain

    App Packaging & Development
    7
    15
    697
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robi
      robi last edited by girish

      http://xip.io (update: now seems dead)

      What is xip.io?
      xip.io is a magic domain name that provides wildcard DNS
      for any IP address. Say your LAN IP address is 10.0.0.1.
      Using xip.io,

            10.0.0.1.xip.io   resolves to   10.0.0.1
        www.10.0.0.1.xip.io   resolves to   10.0.0.1
      

      mysite.10.0.0.1.xip.io resolves to 10.0.0.1
      foo.bar.10.0.0.1.xip.io resolves to 10.0.0.1

      ...and so on. You can use these domains to access virtual
      hosts on your development web server from devices on your
      local network, like iPads, iPhones, and other computers.
      No configuration required!

      Life of Advanced Technology

      Lonkle girish 2 Replies Last reply Reply Quote 1
      • Lonkle
        Lonkle @robi last edited by

        @robi Cool concept. What’s the benefit over just using the IP though?

        fbartels 1 Reply Last reply Reply Quote 0
        • fbartels
          fbartels App Dev @Lonkle last edited by

          @Lonk said in xip.io - Access any dev App via internal IP using a magic domain:

          What’s the benefit over just using the IP though?

          Through sni you can host multiple websites on the same ip.

          Lonkle 1 Reply Last reply Reply Quote 1
          • girish
            girish Staff @robi last edited by

            @robi Do you know if Let's Encrypt certs work with those domains (since LE has limits). Or maybe they have some special agreement with Let's Encrypt to get over the rate limits?

            robi 1 Reply Last reply Reply Quote 2
            • mehdi
              mehdi App Dev last edited by

              @girish they resolve to a local IP, so I don't really see how the letsencrypt verification procedure could find your server. Or am I missing something ?

              girish 1 Reply Last reply Reply Quote 0
              • girish
                girish Staff @mehdi last edited by girish

                @mehdi I think you can put any public IP as well. So you can create a droplet and use it's public IP address.

                1 Reply Last reply Reply Quote 2
                • robi
                  robi last edited by

                  Any IP is usable not just private ones. Hence yes, you can get a LE cert.. try it.

                  Life of Advanced Technology

                  Lonkle 1 Reply Last reply Reply Quote 1
                  • Lonkle
                    Lonkle @fbartels last edited by

                    @fbartels said in xip.io - Access any dev App via internal IP using a magic domain:

                    @Lonk said in xip.io - Access any dev App via internal IP using a magic domain:

                    What’s the benefit over just using the IP though?

                    Through sni you can host multiple websites on the same ip.

                    I don’t understand how tho if no two of these “magic domains” can point to the same IP?

                    fbartels 1 Reply Last reply Reply Quote 0
                    • Lonkle
                      Lonkle @robi last edited by

                      @robi said in xip.io - Access any dev App via internal IP using a magic domain:

                      Any IP is usable not just private ones. Hence yes, you can get a LE cert.. try it.

                      I think I may have a use case for this then! 🤔 wonder if I could get a wildcard cert for it.

                      1 Reply Last reply Reply Quote 0
                      • fbartels
                        fbartels App Dev @Lonkle last edited by fbartels

                        @Lonk said in xip.io - Access any dev App via internal IP using a magic domain:

                        I don’t understand how tho if no two of these “magic domains” can point to the same IP?

                        From the projects homepage:

                        10.0.0.1.xip.io resolves to 10.0.0.1
                        www.10.0.0.1.xip.io resolves to 10.0.0.1
                        mysite.10.0.0.1.xip.io resolves to 10.0.0.1
                        foo.bar.10.0.0.1.xip.io resolves to 10.0.0.1

                        So multiple domains can point to the same ip.

                        Lonkle 1 Reply Last reply Reply Quote 3
                        • Lonkle
                          Lonkle @fbartels last edited by

                          @fbartels Ohhhhhh. I understand now. Thanks for the explanation. What a cool concept.

                          1 Reply Last reply Reply Quote 1
                          • robi
                            robi last edited by

                            bumping for a refresher.

                            Life of Advanced Technology

                            rmdes 1 Reply Last reply Reply Quote 0
                            • rmdes
                              rmdes @robi last edited by

                              @robi main domain seems to be dead ?

                              BrutalBirdie 1 Reply Last reply Reply Quote 0
                              • BrutalBirdie
                                BrutalBirdie Staff @rmdes last edited by

                                @rmdes there is also https://nip.io/

                                Like my work? Consider donating a beer 🍻 Cheers!

                                1 Reply Last reply Reply Quote 1
                                • robi
                                  robi @girish last edited by

                                  @girish said in xip.io - Access any dev App via internal IP using a magic domain:

                                  @robi Do you know if Let's Encrypt certs work with those domains (since LE has limits). Or maybe they have some special agreement with Let's Encrypt to get over the rate limits?

                                  nip.io maps <anything>[.-]<IP Address>.nip.io in "dot", "dash" or "hexadecimal" notation to the corresponding <IP Address>:

                                  dot notation: magic.127.0.0.1.nip.io
                                  dash notation: magic-127-0-0-1.nip.io
                                  hexadecimal notation: magic-7f000001.nip.io

                                  The "dash" and "hexadecimal" notation is especially useful when using services like LetsEncrypt as it's just a regular sub-domain of nip.io

                                  Life of Advanced Technology

                                  1 Reply Last reply Reply Quote 1
                                  • First post
                                    Last post
                                  Powered by NodeBB