M-elman
M-elman

Reputation: 323

Web-RTC: Connecting to a remote server

I'm trying to implement a simple Web RTC App as shown in Building a WebRTC Video Chat Application with PeerJS which uses the code from here. It works when I use the application on my computer opening to browser tabs, one for the initiator and one for the receiver. But how can I connect to a server running on a friend of mine's machine, perhaps at his home, on a different network? We tried launching the server and the client from his machine and the client from mine and then having him connecting on Chrome to http://localhost:3000 as the guide suggests while I typed on Chrome his public IP address followed by port 80, but it doesn't work.

Anyone can help?

Upvotes: 1

Views: 3836

Answers (1)

Philipp Hancke
Philipp Hancke

Reputation: 17350

the signaling server should be running on the public internet, see this article WebRTC lets the browsers connect directly to each other and exchange media and data, you still need a way for them to do the initial connection.

Upvotes: 1

Related Questions