NatTypeChecker
A useful NAT type checker with STUN protocol, base JS. Using Google stun server, available. 一个使用STUN协议且基于JS的可用的NAT类型检查工具. 使用Google的stun服务器,可用,记得看看自己是否能访问Google。
Install / Use
/learn @nthack/NatTypeCheckerREADME
NatTypeChecker
A useful NAT type checker with STUN protocol, base JS.
Using Google stun server, available.
<br><br>Quote:
https://webrtchacks.com/symmetric-nat/
https://jsfiddle.net/5ftsd5c2/17/
https://github.com/fippo/sdp
Usage
- Open Chrome, and open
Developer Toolsin Chrome (F12) - Switch to
Consoletab, Paste the code fromchecker.jsinto console, then PressEnterto run the script Consolewill print your NAT type below.
Prints
<br>
normal nat: Means your NAT type is normal NAT type, asymmetric.
symmetric nat:Means your NAT type is symmetric NAT type.
After
This just a little tool to check your NAT type, not an official tools.
As usual, Iphone hotspot wifi sharing is a symmetric NAT, home land network is asymmetric, Switch your network for a test, you will know. Tanks.
<br><br>
NAT类型检查工具
一个使用STUN协议且基于JS的可用的NAT类型检查工具.
使用Google的stun服务器,可用,记得看看自己是否能访问Google。
<br><br>引用/相关文章:
https://webrtchacks.com/symmetric-nat/
https://jsfiddle.net/5ftsd5c2/17/
https://github.com/fippo/sdp
用法
- 打开
Chrome,打开开发者工具(F12) - 选择
Console控制台面板并粘贴从checker.js复制的代码,按回车键运行 Console控制台会在下方输出你的网络类型
输出
<br>
normal nat: 表示为普通NAT(非对称NAT)
symmetric nat:表示对称型NAT
写在最后
这是一个测试你的NAT类型小工具,并不是官方的工具。
通常来说,Iphone的热点是对称型的NAT,家庭宽带是非对称的NAT,大家换一下网络测试一下就知道,
