Hello,
I have an error with your stun client.
When I use your client he indicates that I have a full
con nat but I have a symmetric nat. (I have made the
same test with FWD or EyePMedia client and its ok).
you can see in attached ethereal capture that your
client never send correctly the TEST II (with both
the "change IP" and "change port").
I also see in client source that the changePort is
commented, why?
switch (testNum)
{
case 1:
case 10:
case 11:
break;
case 2:
//changePort=true;
changeIP=true;
break;
case 3:
changePort=true;
break;
case 4:
changeIP=true;
break;
case 5:
discard=true;
break;
default:
cerr << "Test " << testNum <<" is unkown\n";
assert(0);
C:\stund_0.94_Oct29\ClientDebug>
C:\stund_0.94_Oct29\ClientDebug>client.exe -v
larry.gloo.net
STUN client version 0.94
Opened port 27183 with fd 1944
Opened port 27184 with fd 1924
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 4
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 66.7.238.210:3478
Received stun message: 56 bytes
MappedAddress = 193.134.216.2:61973
SourceAddress = 66.7.238.210:3478
ChangedAddress = 66.7.238.213:3479
Received message of type 257 id=1
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 66.7.238.213:3478
Encoding stun message:
Encoding ChangeRequest: 4
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 193.134.216.2:61973
Received stun message: 56 bytes
MappedAddress = 193.134.216.2:61974
SourceAddress = 66.7.238.213:3478
ChangedAddress = 66.7.238.213:3479
Received message of type 257 id=2
Received stun message: 56 bytes
MappedAddress = 193.134.216.2:61976
SourceAddress = 66.7.238.213:3479
ChangedAddress = 66.7.238.210:3478
Received message of type 257 id=10
Received stun message: 56 bytes
MappedAddress = 193.134.216.2:61977
SourceAddress = 66.7.238.213:3478
ChangedAddress = 66.7.238.213:3479
Received message of type 257 id=2
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 193.134.216.2:61973
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 193.134.216.2:61973
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 193.134.216.2:61973
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 193.134.216.2:61973
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 193.134.216.2:61973
Encoding stun message:
Encoding ChangeRequest: 2
About to send msg of len 28 to 66.7.238.210:3478
Encoding stun message:
Encoding ChangeRequest: 0
About to send msg of len 28 to 193.134.216.2:61973
test I = 1
test II = 1
test III = 0
test I(2) = 1
is nat = 1
mapped IP same = 0
Primary: Full Cone Nat, random port, no hairpin
Return value is 0x9