Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Datachannel: Port Numbers #227

@aboba

Description

@aboba

From Robin Raymond:

We have an issue with the DataChannel API. There is we have no way to specify the SCTP port number associated with the data channel (but we do have a stream identifier) It is possible to make arbitrary assumptions about port numbers, such as assuming 5000, 5001,… based on “signalling”, i.e. SDP, and then the stream identifier is assigned to the port number to use (where multiple streams can be muxed into a single port).

We have two options:

  1. programmer must create an SCTP transport PER port then data channels are assigned to SCTP transport [thus DTLS transport would be a 1 to many SCTP transport relationship]… OR

  2. we add an optional “port” number to the data channel so the data channel can go over a specified SCTP port number [and if not specified, then the system assigns one].

The trouble with option #2 is that the data channel API will include an additional param vs WebRTC 1.0 (where the port number is inside the SDP).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions