See this example: https://github.com/soundanalogous/breakout-experiments/blob/master/multi_client/multi_client.html
You would do something like this, but one connection would be local and the other would have a remote IP address. You may need to setup port forwarding on the remote computer to get it to work.