问题描述
我想要:通过它的域名从远程 ping 我电脑上的服务器.
I want: ping server on my PC by it domain name from remote.
我有:
- DynDNS 服务 DuckDns(或 No-IP,在 no-ip 中配置更难).它给我一个 IP
94.154.220.216
和(子)域http://my_domain.duckdns.org
.要在 PC 上配置DuckDNS
,我只需要指定一些令牌和我的域名 (my_domain
). - 我还在
lacalhost:3000
上启动了服务器. - 此外,当我访问 CanYouSeeMee 时,它说我的 IP 是
94.154.220.216
(很好). - 我为我的 PC 配置了静态 IP(比如
200.300.1.15
) - 并在端口转发向导(端口=
3000
,协议=TCP,内部 IP =200.300.1.15
)
- DynDNS services DuckDns (or No-IP, config in no-ip is even harder). It gets me an IP
94.154.220.216
and (sub)domainhttp://my_domain.duckdns.org
. To configureDuckDNS
on PC I need just specify some token and my domain name (my_domain
). - Also I've launched server on
lacalhost:3000
. - Also when I go to CanYouSeeMee it says that my IP is
94.154.220.216
(that's good). - And I configured static IP for my PC (let's say
200.300.1.15
) - 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.org
也无法获得 http://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.
问题:
- 我如何检查出了什么问题?表示 DuckDNS 是否没有将请求重定向到我的路由器,或者我的路由器是否没有将请求重定向到我的 PC.
- 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 hemorrhoidswith God knows what, I used ngrok - 30 seconds and vu a la! All you need to do is:
- 下载
- 运行它:
./ngrok subdomain=<your_server_port>
这篇关于我的 PC 的域名:如何(尝试了 No-IP、DuckDNS 和 ngrok)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!