测试当前网络的 NAT 类型(STUN)

renovate[bot] b24c9533f8 chore(deps): update dependency microsoft.windowsappsdk to 1.7.250513003 5 months ago
.github 64dac21840 chores: Update renovate.json 9 months ago
Build 111e4f4adc housekeeping: Update build scripts 3 years ago
NatTypeTester 4e97be0523 chore(deps): update dependency microsoft.extensions.hosting to 9.0.5 5 months ago
NatTypeTester.Models 6388abeef6 chore(deps): update abp to 9.1.3 5 months ago
NatTypeTester.ViewModels 6388abeef6 chore(deps): update abp to 9.1.3 5 months ago
NatTypeTester.WinUI b24c9533f8 chore(deps): update dependency microsoft.windowsappsdk to 1.7.250513003 5 months ago
STUN cfa2db5bce housekeeping: Release 8.0.2 1 year ago
UnitTest b2f1985ffd chore(deps): update dependencies 6 months ago
pic f65de9245c feat: Add i18n for WinUI 1 year ago
.editorconfig 6ae748fb99 style: Update .editorconfig 5 months ago
.gitignore 22a115f142 style: Update code style 3 years ago
LICENSE 30775b4dbe fix: CI 1 year ago
NatTypeTester.sln 30775b4dbe fix: CI 1 year ago
NuGet.Config 75422b3531 housekeeping: Update to .net6.0 4 years ago
README.md f65de9245c feat: Add i18n for WinUI 1 year ago
build.WinUI.ps1 f65de9245c feat: Add i18n for WinUI 1 year ago
build.ps1 84439b593b dep: Update to .NET 8.0 1 year ago
common.props dd7962e812 fix: WinUI 1 year ago

README.md

NatTypeTester

Channel | Status -|- CI | CI Stun.Net | NuGet.org

RFC

Internet Protocol

  • IPv4
  • IPv6

Transmission Protocol

  • UDP
  • TCP
  • TLS-over-TCP

RFC3489

![](pic/RFC3489.png)

RFC5389

Binding Test

Checking for UDP Connectivity with the STUN Server ![](pic/RFC5780_4.2.png)

Mapping Behavior

Determining NAT Mapping Behavior ![](pic/RFC5780_4.3.png)

Filtering Behavior

Determining NAT Filtering Behavior ![](pic/RFC5780_4.4.png)

Combining Tests

![](pic/RFC5780_4.5.png)