Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

NatTypeTester

> 编程语言
Open source

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

4.7K stars0 likes0 views
WebsiteGitHub

About

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

# NatTypeTester Package | NuGet -|- Stun.Net | [](https://www.nuget.org/packages/Stun.Net/) ## Architecture ```mermaid flowchart TD Console["Console"] --> Application["Application"] Desktop["Desktop"] --> Views["Views"] Android["Android"] --> Views Views --> Application Views --> Configuration["Configuration"] Views --> ViewModels["ViewModels"] Application --> ApplicationContracts["Application.Contracts"] Application --> Domain["Domain"] Configuration --> Domain ViewModels --> ApplicationContracts ViewModels --> Domain ApplicationContracts --> DomainShared["Domain.Shared"] Domain --> DomainShared ``` ## RFC - [RFC 3489](https://datatracker.ietf.org/doc/html/rfc3489) - [RFC 5780](https://datatracker.ietf.org/doc/html/rfc5780) - [RFC 8489](https://datatracker.ietf.org/doc/html/rfc8489) ## Internet Protocol - [x] IPv4 - [x] IPv6 ## Transmission Protocol - [x] UDP - [x] TCP - [x] TLS-over-TCP - [x] DTLS-over-UDP ## RFC3489 > The STUN server has two IP addresses (`IP1`, `IP2`), each listening on two ports (`Port1`, `Port2`). > *Send to X, request from Y* means the request is sent to endpoint `X`, asking the server to reply from endpoint `Y`. ``` … ``` ## RFC5389 > The STUN server has two IP addresses (`IP1`, `IP2`), each listening on two ports (`Port1`, `Port2`). > *Send to X, request from Y* means the request is sent to endpoint `X`, asking the server to reply from endpoint `Y`. ### Binding Test Checking for UDP Connectivity with the STUN Server ```mermaid flowchart TD T1["Send to IP1:Port1
request from IP1:Port1"] --> R1{"Received?"} R1 -->|No| B1["Fail"]:::bad R1 -->|Yes| R2{"Received
MappedEndpoint?"} R2 -->|No| B2["Unsupported Server"]:::bad R2 -->|Yes| G1["Success"]:::good classDef bad fill:#f4756b,stroke:#c0392b,color:#000 classDef good fill:#7fe57f,stroke:#38761d,color:#000 ``` ### Mapping Behavior Determining NAT Mapping Behavior ``` … ``` ### Filtering Behavior Determining NAT Filtering Behavior ``` … ``` ### Combining Tests ``` … ```

GitHub Issues· 0 open

View all on GitHub

No open issues yet, or sync has not completed.

Highlights

  • •RFC 3489
  • •RFC 5780
  • •RFC 8489
  • •[x] IPv4
  • •[x] IPv6
  • •[x] TLS-over-TCP
  • •[x] DTLS-over-UDP

> Tags

C#natrfc3489rfc5389rfc5780

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言