Comments (3)
Hi, thank you for reporting the issue.
Please use the NewClient function to pass your own connection instead, you'll have more control on it in that case.
I can add the Connection
and LocalAddr
helpers for client so this is not needed, but seems like it won't help in common use case. Please share how you want to use the obtained local address value so I can understand the context better.
from stun.
from stun.
Please take a look at cmd/stun-traversal example, that should help.
Also you can take a look at pion/webrtc project, it can handle NAT traversal automatically.
from stun.
Related Issues (20)
- client: support TCP protocol
- Refactor stun.Client for hole punching HOT 1
- all: RFC 8489 HOT 1
- errors: allocate only if -debug flag set HOT 1
- e2e: use long-term credentials
- all: add IPv6 support
- client: alternate server tips HOT 1
- all: implement RFC 5780 NAT Discovery HOT 4
- e2e: mount coturn config instead of building image
- client: fix possible data race in handleAgentCallback
- all: add stun-bench cmd
- all: switch to modules HOT 1
- all: implement URI parsing by RFC 7064
- e2e: capture packets
- UDP Question + Proxy Protocol HOT 3
- how set username and credential HOT 2
- How do I use it after I get my IP through stun? HOT 6
- return both ipv4 and ipv6 address HOT 4
- What's the relationship with pion/stun HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stun.