1
1
10101010010001001101001112012-02-03 13:39:33
Network administration
1010101001000100110100111, 2012-02-03 13:39:33

How to determine the type of NAT behind which is your own computer?

I want to write a myNATtype()
function that would return one of the following responses:
Full Cone NAT, Symmetric NAT, Address Restricted NAT, Port Restricted NAT, or
Some Other Unknown F_cking NAT (no NAT)
How can I do this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2012-02-03
@bondbig

You can't tell the difference between a conical nut and a static nut. They will read Wikipedia, and then they will achieve all sorts of heresy on the porches .

Y
YourChief, 2012-02-03
@YourChief

teredo clients define the nat type to determine their teredo address. read about this protocol and use their servers to detect your type

V
Vitaly Peretyatko, 2012-02-04
@viperet

using the STUN protocol, you can determine the type of nat, see the client example github.com/jselbie/stunserver/blob/master/client/clientmain.cpp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question