How to specify IP addresses manually, maybe? #1044
Unanswered
ToBeReplaced
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I am new to WebRTC, so this may be an XY problem.
I am trying to set up the server example (https://github.com/aiortc/aiortc/tree/main/examples/server) in a private network using podman containers. The network configuration:
Server: aiortc service, IP in container knowable, but unspecified. External IP 10.10.10.1
Client: Firefox, IP in container knowable, but unspecified. External IP 10.10.10.2
Out-of-the-box, ICE fails. My understanding is this would be because the server does not know its IP is 10.10.10.1, and the client does not know its IP is 10.10.10.2, so their "offers" are insufficient to establish connection.
Is there a way to manually provide these IPs (as ICE candidates?) in the offers?
As far as I understand, a public STUN server would not help, because the STUN server would not see the private IPs. Is that correct? And so, if I wanted to use STUN, I could deploy a third container as a STUN server on the private network?
Thank you to anyone who reads this. I know I am asking for free help. Hopefully this question is general enough that it could help someone else when they are wrapping their head around how all of this works for the first time as well.
I suspect this is conceptually similar to the problem a user faced here: #763
Beta Was this translation helpful? Give feedback.
All reactions