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

renovate[bot] ec99077011 chore(deps): update dependency microsoft.extensions.hosting to 9.0.10 4 일 전
.github a741eceb93 chore(deps): update actions/setup-dotnet action to v5 (#278) 1 개월 전
docs 15cd5ebd9e chore: update project structure 5 달 전
scripts eb79d467f2 feat: drop WinUI 4 달 전
src 922a31ecba chore: 8.0.5 2 주 전
.editorconfig 40cdf922ad fix: format 4 달 전
.gitignore 22a115f142 style: Update code style 3 년 전
Directory.Build.props 86cdb03287 chore: Default IsPackable = false 3 주 전
Directory.Packages.props ec99077011 chore(deps): update dependency microsoft.extensions.hosting to 9.0.10 4 일 전
LICENSE 15f6d55fde chore: update license 5 달 전
NatTypeTester.slnx eb79d467f2 feat: drop WinUI 4 달 전
NuGet.Config 75422b3531 housekeeping: Update to .net6.0 4 년 전
README.md 15cd5ebd9e chore: update project structure 5 달 전

README.md

NatTypeTester

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

RFC

Internet Protocol

  • IPv4
  • IPv6

Transmission Protocol

  • UDP
  • TCP
  • TLS-over-TCP
  • DTLS-over-UDP

RFC3489

![](docs/img/RFC3489.png)

RFC5389

Binding Test

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

Mapping Behavior

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

Filtering Behavior

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

Combining Tests

![](docs/img/RFC5780_4.5.png)