<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Somajit Dey</title>
    <description>The latest articles on DEV Community by Somajit Dey (@somajitdey).</description>
    <link>https://dev.to/somajitdey</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F756330%2Fb6200051-b742-4e9c-82db-3c73806c79f2.jpeg</url>
      <title>DEV Community: Somajit Dey</title>
      <link>https://dev.to/somajitdey</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/somajitdey"/>
    <language>en</language>
    <item>
      <title>Introducing IPNS-Link</title>
      <dc:creator>Somajit Dey</dc:creator>
      <pubDate>Thu, 18 Nov 2021 12:41:31 +0000</pubDate>
      <link>https://dev.to/somajitdey/introducing-ipns-link-3bp2</link>
      <guid>https://dev.to/somajitdey/introducing-ipns-link-3bp2</guid>
      <description>&lt;p&gt;You have just built your first website or web-app, from the ground up. You configure and launch a local server - Apache, Nginx or Caddy - and point your browser to &lt;code&gt;http://localhost&lt;/code&gt;. And, IT WORKS! Your dream is right in front of you, a concept realized - a special moment that would remain with you forever! Awesome. &lt;/p&gt;

&lt;p&gt;Now, what's next? Of course, you want to share it with everybody out there, and you want it to last. So, first of all, you'd need a machine that would stay online round the clock. Your Raspberry Pi is perfect for the job. Great. Now, you'd need ... whoops, first roadblock: your ISP doesn't assign you a public IP address, i.e. your server is not reachable from the internet. No problem, you'd just use any free service such as &lt;a href="https://ngrok.com"&gt;ngrok&lt;/a&gt;, &lt;a href="https://localhost.run"&gt;localhost.run&lt;/a&gt; or &lt;a href="https://getuplink.de"&gt;uplink&lt;/a&gt;. These services expose your site to the internet and provide an https-URL to access it. Everything works! Congrats.&lt;/p&gt;

&lt;p&gt;After your initial joy settles down, you realize the catch with these free plans. From time to time, you have to restart the exposure process and every time you do that the URL changes, the old URL becoming invalid. Your website has an ever-changing address on the internet. What good is that? Even if you were to pay them for a static URL, what would happen if and when the service shuts down?&lt;/p&gt;

&lt;p&gt;But, what other options do you have? You're a student, web-dev has just been an adventure and you can't really afford to get into all the hassles and costs involved in conventional web-hosting with your meagre pocket money and limited time. Are you really going to purchase a public IP or move your site to a premium hosting service? Are you prepared to spend on a domain name year after year and manage SSL setup for https?&lt;/p&gt;

&lt;p&gt;Despair not. &lt;a href="https://github.com/ipns-link/specs"&gt;IPNS-Link&lt;/a&gt; gives you the following alternative.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--st3p9oOS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dlrbxxfsyt7u3kidp8mp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--st3p9oOS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dlrbxxfsyt7u3kidp8mp.jpg" alt="Illustration" width="880" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;IPNS-Link: Bob and Grace access Alice's localhost and a blocked website using a private and public gateway respectively.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ol&gt;
&lt;li&gt;Install and run a free and open-source app on your local server (the Pi in your case), following &lt;a href="https://github.com/ipns-link/ipns-link/blob/main/tutorials/QuickStart.md"&gt;this&lt;/a&gt; easy tutorial.&lt;/li&gt;
&lt;li&gt;The app would give you a long &lt;a href="https://en.wikipedia.org/wiki/Universally_unique_identifier"&gt;UUID&lt;/a&gt;. You can make a &lt;a href="https://www.the-qrcode-generator.com/"&gt;QR code&lt;/a&gt; out of it for convenience.&lt;/li&gt;
&lt;li&gt;Send the UUID or QR code to all your friends and community.&lt;/li&gt;
&lt;li&gt;To access your site anytime, all they need to do is go to &lt;em&gt;any&lt;/em&gt; public IPNS-Link-Gateway, such as &lt;a href="https://www.ipns.live"&gt;ipns.live&lt;/a&gt; and put your UUID in there. Or, better yet, they can &lt;a href="https://github.com/ipns-link/ipns-link-gateway#self-hosting"&gt;run their own private gateway locally on their computer&lt;/a&gt;, and access your site directly, without any middle-man.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;That's it!&lt;/strong&gt; You distribute that UUID to your audience once and for all, and you're set. Even if you later port your site to a VPS or cloud hosting provider (e.g. AWS EC2 free-tier), your site can still be accessed using the same UUID. Even if you later get a domain name for your site and make it accessible from the main-stream web, the IPNS-Link exposure would continue to provide your users with decentralized routes to your site. This helps in case your domain is ever &lt;a href="https://ipns-link.medium.com/introducing-ipns-link-36a14c87a4aa"&gt;taken down or blocked&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;IPNS-Link uses the InterPlanetary File System (IPFS) network behind the scenes. &lt;a href="https://docs.ipfs.io/concepts/ipns/"&gt;IPNS&lt;/a&gt;, or Interplanetary Name System, is a subsystem built atop IPFS. Curious? Start &lt;a href="https://ipfs.io"&gt;here&lt;/a&gt; and work your way up to the &lt;a href="https://github.com/ipns-link/specs"&gt;IPNS-Link specs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Like what IPNS-Link's doing? Spread the word (&lt;a href="https://ipns-link.medium.com/"&gt;here&lt;/a&gt;'s another blog). Usher in a micro-hosting movement for the decentralized web to learn, experiment, tinker, showcase and grow, worry-free. &lt;a href="https://github.com/ipns-link/contribute#join-the-community"&gt;Join the community&lt;/a&gt; and be a part. &lt;a href="https://github.com/ipns-link/contribute"&gt;Contribute&lt;/a&gt; any way you can.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Happy Hosting!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>webhosting</category>
      <category>ipfs</category>
      <category>domainless</category>
      <category>uncensorable</category>
    </item>
  </channel>
</rss>
