{"id":297621,"date":"2021-07-13T12:00:00","date_gmt":"2021-07-13T09:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/should-you-care-about-ipv6-connectivity-for-your-web-server-cloudsavvy-it\/"},"modified":"2021-07-13T12:00:00","modified_gmt":"2021-07-13T09:00:00","slug":"should-you-care-about-ipv6-connectivity-for-your-web-server-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/should-you-care-about-ipv6-connectivity-for-your-web-server-cloudsavvy-it\/","title":{"rendered":"#Should You Care About IPv6 Connectivity For Your Web Server? \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a240113b332a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a240113b332a\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/should-you-care-about-ipv6-connectivity-for-your-web-server-cloudsavvy-it\/#Is_IPv6_Faster\" >Is IPv6 Faster?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/should-you-care-about-ipv6-connectivity-for-your-web-server-cloudsavvy-it\/#Verdict_It_Doesnt_Hurt_to_Enable_It\" >Verdict: It Doesn\u2019t Hurt to Enable It<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/should-you-care-about-ipv6-connectivity-for-your-web-server-cloudsavvy-it\/#How_To_Turn_On_IPv6_in_NGINX_and_Apache\" >How To Turn On IPv6 in NGINX and Apache<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#Should You Care About IPv6 Connectivity For Your Web Server? \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<figure style=\"width: 1400px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage wp-image-4836 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/02\/c8961522.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"city network illustration\" width=\"1400\" height=\"680\" src=\"https:\/\/www.shutterstock.com\/image-photo\/wireless-communication-network-concept-iotinternet-things-1007765257\" data-credittext=\"metamorworks\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\"><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-photo\/wireless-communication-network-concept-iotinternet-things-1007765257\">metamorworks<\/a><\/span><\/figcaption><\/figure>\n<p>IPv6 is the latest version of the Internet Protocol, replacing the outdated IPv4 that still powers the majority of the web, and solving the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/IPv4_address_exhaustion\">IP exhaustion issue<\/a>. Is it really faster, and should you care about it for your server?<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Is_IPv6_Faster\"><\/span>Is IPv6 Faster?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There\u2019s a bit of debate surrounding this question. On paper, IPv6 should be marginally slower. <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.omnisecu.com\/tcpip\/ipv6\/comparison-between-ipv4-header-and-ipv6-header.php\">The header size is much larger<\/a>, due to IPv6 needing 128 bits for the source and destination addresses compared to IPv4\u2019s 32 bits. Overall, IPv6\u2019s header size is nearly doubled.<\/p>\n<p>This isn\u2019t really an issue in practice though, since\u00a0IPv6 is not just an increase in address size\u2014it greatly simplifies the handling of traffic, and in some cases can lead to actual performance increases due to bottlenecks in IPv4 infrastructure.<\/p>\n<p>In the past, IPv6 used to be terribly slow, but it\u2019s getting better year by year. According to <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/social-mediaa\/\" data-internallinksmanager029f6b8e52c=\"1\" title=\"Social Media\" target=\"_blank\" rel=\"noopener\">Facebook<\/a> in 2015, <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/engineering.fb.com\/networking-traffic\/ipv6-it-s-time-to-get-on-board\/\">IPv6 improved TCP connect response times by up to 15%<\/a>. However, this is on the order of a few milliseconds, which isn\u2019t nothing, but isn\u2019t such a radical speed benefit that would require you turn it on immediately.<\/p>\n<p>In some cases though, IPv6 can actually be a bit slower than IPv4, not to mention the fact that some users may not be able to access IPv6 content.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Verdict_It_Doesnt_Hurt_to_Enable_It\"><\/span>Verdict: It Doesn\u2019t Hurt to Enable It<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The good <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/news\/\" data-internallinksmanager029f6b8e52c=\"2\" title=\"News\" target=\"_blank\" rel=\"noopener\">news<\/a> is, we don\u2019t need to settle this debate here, since the question doesn\u2019t actually matter. You don\u2019t have to choose one or the other. Most modern browsers will <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/superuser.com\/a\/1199141\">send out TCP handshake requests to both the IPv4 and IPv6<\/a> addresses of your web server (as well as any other alternate addresses). Whichever one responds first is chosen to make the full connection.<\/p>\n<p>If an older browser doesn\u2019t support this, it will simply connect to the IPv4 address. This is known as the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.m.wikipedia.org\/wiki\/Happy_Eyeballs\">Happy Eyeballs<\/a>\u00a0(or Fast Fallback) algorithm, and it\u2019s the major reason that makes IPv6 adoptable in the first place.<\/p>\n<p>Overall, if you can\u2019t enable IPv6 for some reason, or simply don\u2019t care, you won\u2019t be missing out on much. However, enabling it is very simple, and with potential performance improvements on the table, it\u2019s worth taking a few minutes to turn it on. After all, it can\u2019t hurt.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Find Your Nginx Configuration Folder<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_To_Turn_On_IPv6_in_NGINX_and_Apache\"><\/span>How To Turn On IPv6 in NGINX and Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before you begin, you\u2019ll need to make sure your web server is even accessible over IPv6. This will usually involve you requesting an IPv6 address from your VPS provider. For AWS, IPv6 addresses are created automatically for EC2 instances, and are assigned to the ENI\u2014not the instance itself.<\/p>\n<p>After that, you\u2019ll need to create an\u00a0<strong>AAAA Record<\/strong> (four times IPv4) in your DNS, so that users will know what address to connect to. Your DNS provider should have an option for this. For AWS, you can even create AAAA Alias records, which will map dynamically to an AWS resource over IPv6.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3889 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/02\/51480353.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"dns aaaa record\" width=\"532\" height=\"322\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>For NGINX, you can enable IPv6 by listening on your server\u2019s available IPv6 addresses, with the following notation:<\/p>\n<pre>server {&#13;\n  listen [::]:80;&#13;\n}<\/pre>\n<p>Optionally, you can listen on a single manual address using <code>listen [ADDRESS]:80<\/code>, or only enable IPv6 using <code>ipv6only=on<\/code>.<\/p>\n<p>For Apache, you can turn it on in the same manner using an additional <code>Listen<\/code> directive in your <code>httpd.conf<\/code>:<\/p>\n<pre>Listen [ADDRESS]:80<\/pre>\n<\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/3864\/should-you-care-about-ipv6-connectivity-for-your-web-server\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#Should You Care About IPv6 Connectivity For Your Web Server? \u2013 CloudSavvy IT&#8221; metamorworks IPv6 is the latest version of the Internet Protocol, replacing the outdated IPv4 that still powers the majority of the web, and solving the IP exhaustion issue. Is it really faster, and should you care about it for your server? Is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":297622,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/02\/c8961522.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-297621","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/297621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=297621"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/297621\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/297622"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=297621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=297621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=297621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}