Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utility to help user discover their NAT type #8

Closed
maxhawkins opened this issue Apr 11, 2019 · 3 comments
Closed

Add utility to help user discover their NAT type #8

maxhawkins opened this issue Apr 11, 2019 · 3 comments

Comments

@maxhawkins
Copy link

Summary

Other tools like go-stun can print the type of NAT detected by the STUN server:

> go-stun
NAT Type: Full cone NAT
External IP Family: 1
External IP: 166.111.4.100
External Port: 23009

t would be convenient if our stun did this too, and printed the result to the info log. That way people could include it in issue descriptions while debugging ICE.

@backkem
Copy link
Member

backkem commented Apr 11, 2019

Note; See if we can detect if ´CHANGE-ADDRESS´ is supported.

@cohosh cohosh mentioned this issue May 27, 2020
@Sean-Der
Copy link
Member

This is done! @cohosh added a really cool utility that prints the mapping and filtering type of your NAT

2020/05/29 12:48:37 Connecting to STUN server: stun.voip.blackberry.com:3478
2020/05/29 12:48:37 Local address: 0.0.0.0:46068
2020/05/29 12:48:37 Received xormapped address: 23.252.60.236:46068
2020/05/29 12:48:37 Received xormapped address: 23.252.60.236:46068
2020/05/29 12:48:37 NAT mapping behavior: endpoint-independent
2020/05/29 12:48:37 Local address: 0.0.0.0:60158
2020/05/29 12:48:37 Received xormapped address: 23.252.60.236:60158
2020/05/29 12:49:07 NAT filtering behavior: address-dependent

@introspection3
Copy link

@Sean-Der how write this code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants