Thanks for reading!
Behind a firewall or NAT the connection may not work, I'm not an expert in networks so I can't tell you exactly when and why, we make some test with friends behind a NAT and it work.
If it's not the case, and if you coluld not open ports, you need a TURN server, there are open source alternatives that you could host. When the server is running, you have to set it in the config section of the peer constructor.
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice work - thanks!
Does the code also work, when the user is behind a firewall/NAT?
Thanks for reading!
Behind a firewall or NAT the connection may not work, I'm not an expert in networks so I can't tell you exactly when and why, we make some test with friends behind a NAT and it work.
If it's not the case, and if you coluld not open ports, you need a TURN server, there are open source alternatives that you could host. When the server is running, you have to set it in the config section of the peer constructor.