Skip to content

Clients can't signal each other on initial connection without internet access #12

@andrew103

Description

@andrew103

I'm looking to have two clients connect with each other over a local network that doesn't have internet access. The default constructors in RTCConnection use Google's free STUN server for signaling which requires an internet connection. Traditionally with WebRTC, you can simply remove the entry from the configuration and WebRTC would adopt the first client as the signaling server (at least I think so from what I know).

When attempting to do something similar here with

conn = RTCConnection(rtcConfiguration=RTCConfiguration())

and

var conn = new rtcbot.RTCConnection(rtcConfiguration={iceServers: []});

the connection fails to complete as it seems there is no signaling happening.

Now I noticed that in a previous issue and in the tutorial for connecting over 4G there was mention that the parent library aiortc doesn't have its own TURN server built in and one of the suggested solutions was to install coTURN as a local TURN server. I haven't done it yet but I wanted to confirm my thinking that this would be the solution to my problem of wanting RTC communication within an isolated network.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions