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

renovate[bot] a40d284383 chore(deps): update dependency dns.net to 0.3.0 23 hours ago
.github ff11788038 chore(deps): update actions/checkout action to v6 (#291) 1 week ago
docs 15cd5ebd9e chore: update project structure 6 months ago
scripts e5fc32764f fix: build script 2 weeks ago
src bf88b28977 feat: Upgrade to .NET 10 2 weeks ago
.editorconfig 40cdf922ad fix: format 6 months ago
.gitignore 22a115f142 style: Update code style 4 years ago
Directory.Build.props bf88b28977 feat: Upgrade to .NET 10 2 weeks ago
Directory.Packages.props a40d284383 chore(deps): update dependency dns.net to 0.3.0 23 hours ago
LICENSE 15f6d55fde chore: update license 6 months ago
NatTypeTester.slnx eb79d467f2 feat: drop WinUI 6 months ago
NuGet.Config 75422b3531 housekeeping: Update to .net6.0 4 years ago
README.md 15cd5ebd9e chore: update project structure 6 months ago

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)