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

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

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)