pion / stun

A Go implementation of STUN
https://pion.ly/
MIT License
597 stars 90 forks source link

can't get IPV4 address #191

Open introspection3 opened 1 month ago

introspection3 commented 1 month ago

Your environment.

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 commented 3 weeks ago

I think you can try this https://github.com/pion/stun/issues/96#issuecomment-1208196709

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

introspection3 commented 2 weeks ago

thank you