Show help pages on NAT configuration in case proxying fails
For the initial web store launch of uProxy, we will not support TURN relays between peers, and so some percentage of connections will fail due to NAT settings (usually estimated around 15% of pairs-of-users). In the case of a peerconnection failing, we should include some information about NAT configuration.
TBD: how can we display this to the user? Some options:
- Include this in a FAQ page on uproxy.org, and reference the FAQ in the error notification.
- Include this information somewhere within the uProxy app (possibly we will want the whole FAQ in the uProxy app as uproxy.org will not be an option for some users)
@quantsword a job for uproxy-probe?
We could try and setup a peer-connection as soon as we click on a user and that could be used to say if you can proxy with them... ? (gets very chatty to do this...)?
The UI should inform the user "proxying will not work because X.." and not just mysteriously fail. For example in copy+paste, we get stuck on the redirect page: https://github.com/uProxy/uproxy/issues/996
Had a little brainstorm on this today...
There's a few ways things can fail...
- No ice candidates at all (because there are no network interfaces) shouldn't be a problem in the short term as the user can't connect to a social network.
- Ice does not get to the connected state. This indicates that the network configuration is not suitable for setting up a P2P connection.
- Note: If no public IP addresses are returned, this indicates that the stun servers failed, or were blocked. This doesn't mean proxying will necessarily fail (e.g. a P2P connection can still be setup if the other side has an unrestricted full cone NAT, or no NAT). But in such situation we way want to tell the user to setup/change their STUN settings in the advanced section?
So, we think that the right time to raise a bad network setup is if ICE failed. This is something we should be giving back from socks-rtc and then the uproxy front-end can handle this and show the user an appropriate error.
Related action items:
- Make Advanced Settings it's own page with a "Diagnose NAT" button: https://github.com/uProxy/uproxy/issues/1176
- If proxying fails, allow the sharer to diagnose their NAT as well: https://github.com/uProxy/uproxy/issues/1203 Re: Lucas's comment, maybe we can rename this issue to "Instruct user to setup/change their STUN settings" if proxying fails.