受欢迎的博客标签

how to build ipv6 web step by step

Published

how to build ipv6 web step by step

 

1.buy domain

2.buy server

3. A to server

4. install nginx

5. config nginx for your domain

6.install Let’s Encrypt client certbot

7.downloaded SSL certificates for your domain

 

Patr 1.buy domain

You need a domain / subdomain. If you haven’t already registered a domain and need a registrar, I highly recommend namesilo

detail:www.namesilo.com 注册、域名购买操作手册

You need to know how to configure DNS for your domains / subdomains.

 

Part 2.buy server

You need somewhere to host your server – either in your own network or in the cloud. If you’re in need of a cloud server, I can personally recommend both Linode (affiliate) and DigitalOcean (affiliate) as quality service providers.

 

 

 

Part x:deploy a production-ready ASP.NET Core application on Ubuntu 18.04 using Nginx.

How to Deploying Real World ASP.NET Core 3.x on Ubuntu 18.04 step by step?

In this tutorial you’ll set up and deploy a production-ready ASP.NET Core application with a MongoDb Server on Ubuntu 18.04 using Nginx.

https://www.iaspnetcore.com/Blog/BlogPost/5d9833c672c1772b244aa228/how-to-deploying-real-world-aspnet-core-3x-on-ubuntu-1804-step-by-step

 

我很想知道解决方案的一般超文本传输协议的方式,但如果它是相关的,我通常使用ASP.NET核心的web服务器。

我注意到,当我访问WhatIsMyIPAddress时,它可以同时显示我的IPv4和IPv6:

 

如果我正在使用IPv6,IPv4需要一段时间才能显示出来,如果我从网络接口禁用了IPv6,IPv6需要一段时间才会说没有。

我检查了网络,发现他们通过向https://whatismyipaddress.com/ds3?token=[sometoken]&v=4发送另一个请求来找到我的IPv4。我试着用HTTP客户端追踪它,但没有发现任何感兴趣的东西。

 

它们创建一个只有IPv4地址的DNS记录和一个只有IPv6地址的DNS记录。然后,它们使用JavaScript从这两个主机名加载一些东西(可能是一些显示连接到服务器的IP地址的JSON数据),并查看哪些主机名成功。

 

客户端对服务器进行ajax调用,然后服务器可以获取本地ip号。Javascript:

window.GetIP = function () {
    var token = $('input[name="__RequestVerificationToken"]').val();
    var myData = {}; //if you want to post extra data
    var dataWithAntiforgeryToken = $.extend(myData, { '__RequestVerificationToken': token });
    var ip = String('');
    $.ajax({
        async: !1, //async works as well 
        url: "/api/sampledata/getip",
        type: "POST",
        data: dataWithAntiforgeryToken,
        success: function (data) {
            ip = data;
            console.log('Got IP: ' + ip);
        },
        error: function () {
            console.log('Failed to get IP!');
        }
    });
    return ip;
};

https://cloud.tencent.com/developer/ask/sof/108509900

 

C#笔记——获取本机ipv6地址

string name = Dns.GetHostName();
IPAddress[] ipadrlist = Dns.GetHostAddresses(name);
foreach (IPAddress ipa in ipadrlist)
{
    if (ipa.AddressFamily == AddressFamily.InterNetworkV6)
        Console.Writeline(ipa.ToString());
}
                        
原文链接:https://blog.csdn.net/xuelanlingying/article/details/78713288

会得到三个ipv6地址
第一个是 本地链接 IPv6 地址
第二个是 IPv6地址
第三个是 隧道适配器的本地链接 IPv6 地址