Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7000537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:41:06+00:00 2026-05-27T20:41:06+00:00

I need to programmatically determine the Router NAT type in my program. I did

  • 0

I need to programmatically determine the Router NAT type in my program. I did look at some of the STUN related answers and UPnP related information on SO. But did not get any definitive answers.

I looked at STUN RFC (rfc 5389) and it does not specify how to determine the NAT type. It does mention that it’s previous version (RFC 3489) did provide the mechanism to determine NAT type. But also mentions that

Furthermore. classic STUN’s algorithm for classification of NAT types was found to be faulty, as many NATs did not fit cleanly into the types defined there.

Given above, could you please advice on how I should go ahead with determination of router NAT type in my software. Further, now that RFC 3489 is obsoleted is there any other means?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:41:06+00:00Added an answer on May 27, 2026 at 8:41 pm

    RFC 3489 was split into three different RFCs:

    RFC 5389 – basic STUN protocol. Basic protocol of STUN binding request and binding response are largely the same as RFC 3489. The protocol header gets updated with a magic cookie occupying some of the transaction id field. Some STUN attributes get redefined. A few new ones added (specifically – XOR_MAPPED_ADDRESS). Some changes to how STUN auth is done. NAT behavior and classification discussion moved to RFC 5780.

    RFC 5780 – “Nat Behavior discovery using STUN”. The basic change to NAT type discovery was to distinguish NAT port mapping behavior separate from NAT filtering behavior. Whereas RFC 3489 would try to classify a NAT into one of several buckets (“cone”, “port restricted”, “symmetric”) – which was just too generic to describe a NAT.

    RFC 5769 – Just outlines what the hex dump of a few different STUN message types would look like.

    Out of curiosity, I suppose knowing if your app is running behind a NAT is useful. But how would knowing the NAT’s behavior influence your code path?

    Shameless plug – Use my STUN Server code that is hosted on GitHub.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to determine programmatically if the database supports the Geography data type and
I need to programmatically determine out how many sectors, heads, and cylinders are on
In my program I need to programmatically configure an ApplicationContext. Specifically, I have a
I need to be able to programmatically determine the doctype of the current page
I need to programmatically determine the name of the users who are administrator on
I need to determine programmatically whether an assembly is x86, x64 or AnyCPU? There
I need to programatically determine whether .NET 3.5 is installed. I thought it would
I need to programmatically solve a system of linear equations in C, Objective C,
I need to programmatically enable READ COMMITTED SNAPSHOT in SQL Server. How can I
I need to programmatically modify the Access Descriptors on a known Registry key during

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.