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

renovate[bot] 1251d7aa3b chore(deps): update dependency splat.microsoft.extensions.dependencyinjection to 15.5.3 il y a 2 mois
.github 2abbea8a15 chore(deps): update actions/checkout action to v5 (#273) il y a 2 mois
docs 15cd5ebd9e chore: update project structure il y a 5 mois
scripts eb79d467f2 feat: drop WinUI il y a 5 mois
src dcdc28cec4 test: Update tests il y a 2 mois
.editorconfig 40cdf922ad fix: format il y a 5 mois
.gitignore 22a115f142 style: Update code style il y a 3 ans
Directory.Build.props 3eb0e4a8db chore: use Directory.Build.props il y a 5 mois
Directory.Packages.props 1251d7aa3b chore(deps): update dependency splat.microsoft.extensions.dependencyinjection to 15.5.3 il y a 2 mois
LICENSE 15f6d55fde chore: update license il y a 5 mois
NatTypeTester.slnx eb79d467f2 feat: drop WinUI il y a 5 mois
NuGet.Config 75422b3531 housekeeping: Update to .net6.0 il y a 4 ans
README.md 15cd5ebd9e chore: update project structure il y a 5 mois

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)