Reputation: 5
I find when the webrtc create socket with STUN , the port return by STUN always same as the socket port. Is it accidental or fixed?
Upvotes: 0
Views: 177
Reputation: 4348
It's called port preservation in NAT terminology. Port numbers are preserved unless there is a conflict which happens when you have more than one machine behind NAT accessing the same service.
Upvotes: 0
Reputation: 17360
This depends on the type of NAT you're behind, some NATs may translate the port as well.
Upvotes: 1