我的 PC 的域名:如何(尝试过 No-IP、DuckDNS 和 ngrok) [英] Domain name for my PC: how to (tried No-IP, DuckDNS and ngrok)

查看:28
本文介绍了我的 PC 的域名:如何(尝试过 No-IP、DuckDNS 和 ngrok)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想:通过远程域名 ping 我电脑上的服务器.

I want: ping server on my PC by it domain name from remote.

我有:

  1. DynDNS 服务 DuckDns(或 No-IP,在 no-ip 中配置更难).它为我提供了一个 IP 94.154.220.216 和(子)域 http://my_domain.duckdns.org.要在 PC 上配置 DuckDNS,我只需要指定一些令牌和我的域名 (my_domain).
  2. 我还在 lacalhost:3000 上启动了服务器.
  3. 当我去 CanYouSeeMee 时,它说我的 IP 是 94.154.220.216(很好).
  4. 我为我的 PC 配置了静态 IP(比如说 200.300.1.15)
  5. 端口转发向导 (端口=3000,协议=TCP,内部 IP = 200.300.1.15)
  1. DynDNS services DuckDns (or No-IP, config in no-ip is even harder). It gets me an IP 94.154.220.216 and (sub)domain http://my_domain.duckdns.org. To configure DuckDNS on PC I need just specify some token and my domain name (my_domain).
  2. Also I've launched server on lacalhost:3000.
  3. Also when I go to CanYouSeeMee it says that my IP is 94.154.220.216 (that's good).
  4. And I configured static IP for my PC (let's say 200.300.1.15)
  5. And Setting port forwarding for with help of Port Forwarding Wizard (Port=3000, Protocol=TCP, Internal IP = 200.300.1.15)

问题:我无法获得 http://my_domain.duckdns.orghttp://my_domain.duckdns.org:3000 来自远程.

Problem: I can't get neither http://my_domain.duckdns.org nor http://my_domain.duckdns.org:3000 from remote.

假设:我假设问题出在路由器配置中.

Assumption: I assume that troubles are in router configurations.

问题:

  1. 我如何检查问题所在? 表示 DuckDNS 是否没有将请求重定向到我的路由器或我的路由器没有将请求重定向到我的 PC.
  1. How can I check what is wrong? Means whether DuckDNS doesn't redirect request to my router or my router don't redirect request to my PC.

我的本地网络方案:

Internet <==>    1st Router   <==>             My PC
                 static IP         static IP: (let's say 200.300.1.15)

推荐答案

我在 No-Ip 和 DuckDNS 上浪费了很多时间.他们都声称他们尽可能容易,但这不是事实.最后而不是配置我的路由器并有很多痔疮天知道,我用了 ngrok - 30 秒和 vu a la!您需要做的就是:

I wasted lots of time with No-Ip and DuckDNS. They all claims they're as easy as possible, but that's not the truth. Finally instead of configuring my router and having lots of hemorrhoids with God knows what, I used ngrok - 30 seconds and vu a la! All you need to do is:

  1. 下载
  2. 运行它:./ngrok subdomain=<your_domain_name><your_server_port>

这篇关于我的 PC 的域名:如何(尝试过 No-IP、DuckDNS 和 ngrok)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆