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

How do I configure the public IP to announce for host ICE candidates? #620

Open
SoftMemes opened this issue Oct 11, 2024 · 1 comment
Open

Comments

@SoftMemes
Copy link

I have a webrtc service based on this library. It has ports open on UDP and available on the public network without any firewalls etc. However, the public IP address of the service (its VM) is not known from inside the machine - it is not one of the IP addresses listed on the local network interfaces.

How can I control the IP address that is used to announce host ICE candidates so that peers can connect directly to my service on its public IP?

@r-byondlabs
Copy link

Thats where STUN/ICE come into picture: https://webrtcforthecurious.com/docs/03-connecting/#ice

Once you configure the STUN servers, the candidates are discovered through that, which will also include your public gateway IP.

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