Library function to expose host ip as a string? #1455
-
Working on an app that expects an environment varible WB_IP with the value of the host ip of the machine. I see host_ip is a key in the ports area, but im not seeing a function to provide the host ip yet. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
host_ips is a list I believe that in-container it should still listen on all interfaces, and let docker map it to the correct outside ip? |
Beta Was this translation helpful? Give feedback.
-
this app does listen on all interfaces but for its WebRTC video stream, it checks for WB_IP to exist and then adds that as a stun candidate. Without WB_IP set, it doesnt even turn on the WebRTC stream |
Beta Was this translation helpful? Give feedback.
0.0.0.0 does load the function but the video streams dont work. Havent looked into their code yet. Im considering making it an optional thing in the UI and letting the user put in their own IP? if i can determine which IP to bind to