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

can't get IPV4 address #191

Open
introspection3 opened this issue May 30, 2024 · 2 comments
Open

can't get IPV4 address #191

introspection3 opened this issue May 30, 2024 · 2 comments

Comments

@introspection3
Copy link

Your environment.

  • Version: 2.0
  • Browser: include version
  • Other Information - stacktraces, related issues, suggestions how to fix, links for us to have context

What did you do?

stun.Dial only tries the first address; for a
double-stack host (IPv4 and IPv6), it willl only return an IPv6 address,
so how I can get my ipv4 address

What did you expect?

how I can get my ipv4 address

What happened?

@weilence
Copy link

weilence commented Jun 11, 2024

I think you can try this #96 (comment)

stun.Dial("udp4", "stun.l.google.com:19302")

@introspection3
Copy link
Author

thank you

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

No branches or pull requests

2 participants