Answer the question
In order to leave comments, you need to log in
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
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 .
teredo clients define the nat type to determine their teredo address. read about this protocol and use their servers to detect your type
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 questionAsk a Question
731 491 924 answers to any question