question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SCTP: Parse destination port

See original GitHub issue

It seems the destination port is not parsed from the SDP. This is how my offer looks like:

{
   "type":"offer",
   "sdp":"v=0\r\no=sdpartanic-rawrtc-0.2.1 1371244329 1 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=ice-options:trickle\r\na=group:BUNDLE rawrtc-sctp-dc\r\nm=application 9 DTLS\/SCTP 6000\r\nc=IN IP4 0.0.0.0\r\na=mid:rawrtc-sctp-dc\r\na=sendrecv\r\na=ice-ufrag:KH0HgbiF8NhcfZj8\r\na=ice-pwd:baklGzPiRBxlhfUq3Dm1fvNiqM1r28fM\r\na=setup:actpass\r\na=fingerprint:sha-256 36:13:5E:68:CB:C9:D0:43:9C:C5:32:41:F4:47:04:3F:E2:84:3A:AB:0E:78:02:FD:37:51:9F:32:10:D1:14:A2\r\na=tls-id:zLqLLaRkwjyxQKlfO9Tv0dva2McaHRID\r\na=sctpmap:6000 webrtc-datachannel 65535\r\na=max-message-size:0\r\n[...]\r\na=end-of-candidates\r\n"
}

Be aware, the SCTP port may also come in the form of

a=sctp-port:6000

in the associated media line.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
lgrahlcommented, Mar 10, 2018

An RTCSctpTransport is an SCTP association.

1reaction
lgrahlcommented, Mar 10, 2018

Don’t worry, no one is able to multiplex multiple SCTP transports virtual sockets (if you meant that because associations are of course multiplexed by port numbers). I also don’t see a single use case for this.

In ORTC: You create an RTCSctpTransport by the RTCDtlsTransport and an optional port number. If that is not set, the local port will default to whatever you want it to default. You set the remote port number when invoking the start method.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SCTP - Wireshark Wiki
IP: Typically, SCTP uses IP as its underlying protocol. ... 10.28.6.44 (10.28.6.44) Stream Control Transmission Protocol Source port: 2905 Destination port: ...
Read more >
SCTP packet structure - Wikipedia
The Stream Control Transmission Protocol (SCTP) has a simpler basic packet structure than TCP. ... +0, Source port, Destination port. 32, Verification tag....
Read more >
Issues with Network Address Translation for SCTP
In the theoretical worst case all local hosts attempt to initiate associations to the same destination port from the same source port numbers....
Read more >
SCTP Overview | Junos OS - Juniper Networks
Destination port number. Identifies the receiving port. The hosts use the destination port number to route the packet to the appropriate destination or...
Read more >
Parse netstat command to get ports - Stack Overflow
0.0:* LISTEN 450/weechat netstat: no support for `AF INET (sctp)' on this system. I want to have the list of the ports using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found