Officeloft SDP & ICE Inspector

Read a WebRTC offer, answer or ICE candidates: media, codecs, encryption and connection paths.

An SDP starting with “v=0”, a {"type","sdp"} JSON object, or one ICE candidate per line.

Recommended before you share the result: 198.51.100.23 becomes 198.51.100.x.

Try an example: ·

More about this tool

Part of Officeloft

How it works

Paste a WebRTC session description (SDP offer or answer, also as JSON) or ICE candidate lines, for example from chrome://webrtc-internals or a call log. The inspector lists the media sections with direction and codecs, the DTLS fingerprint and setup role, BUNDLE groups and every candidate with its type, protocol and address kind, then says which connection paths exist — same network, through NAT, or through a TURN relay — and warns about what would make a call fail.

  • The text is split into SDP lines (type=value). Session-level attributes (fingerprint, setup, ICE credentials) apply to every media section that does not override them; codecs come from the m= line payload list joined with a=rtpmap and a=fmtp.
  • Candidates follow the grammar of RFC 8839: foundation, component, transport, priority, address, port, typ host/srflx/prflx/relay, and the optional raddr/rport/tcptype. Addresses ending in “.local” are mDNS names that browsers use to hide local IP addresses.
  • Connection paths: host candidates work on the same network, server-reflexive (srflx) and peer-reflexive (prflx) candidates work through most NAT routers, relay candidates go through a TURN server and also work behind symmetric NAT and strict firewalls (RFC 8445).
  • Checks: missing DTLS fingerprint or ICE credentials (browsers refuse the description), audio without Opus or video without VP8/H.264 (the codecs every WebRTC browser must support), missing rtcp-mux, several sections without BUNDLE, trickle ICE without candidates, no relay or only host candidates.
  • ICE passwords are never shown (only their length). With “Hide the last part of IP addresses” the last octet of IPv4 addresses and everything after the second group of IPv6 addresses is replaced.

The inspector reads the text you paste; it does not connect to anybody. A description that looks fine can still fail when firewalls block the listed paths.

Sources

Part of Officeloft

  • Officeloft Virtual office with audio and video rooms

    A virtual office for your team: see who is in which room, knock, and talk face to face.

    Open Officeloft

How to read a WebRTC offer, answer and ICE candidates

Paste an SDP or candidate lines and see media sections, codecs, encryption and which connection paths a WebRTC call can use — with warnings about what makes calls fail.

What it is for

When a video call in the browser does not connect, the reason is usually written in two small pieces of text: the session description (SDP) each side sends and the ICE candidates that list the network addresses a browser can be reached on. Both are hard to read by eye. The inspector takes either one — an SDP that starts with v=0, a {"type":"offer","sdp":"…"} object from a log, or candidate lines copied from chrome://webrtc-internals — and turns it into a short report.

It answers three questions: what is being sent (audio, video, data, which codecs, in which direction), whether the description is complete enough for a browser to accept it (encryption fingerprint, ICE credentials), and which paths the call can take: the same network, across the internet through a router, or through a TURN relay. The ICE password is never shown, only its length, and by default the last part of every IP address is hidden so you can share the result.

Worked example

The first example is an offer a browser produced for a call with audio and video. The summary reads: “Offer with 2 media sections (audio, video) and 3 ICE candidates (1 host, 1 reflexive, 1 relay).” The media table lists Opus, RED, G722, PCMU and PCMA for audio and VP8 and H264 for video, both sections encrypted with a SHA-256 fingerprint and the DTLS role actpass, which marks an offer. The BUNDLE group 0 1 means both run over one connection.

Under “Possible connection paths” all three paths appear: the host candidate hides its local address behind an mDNS name ending in .local, the server-reflexive candidate shows the public address 198.51.100.x, and the relay candidate shows the TURN server. No warnings.

The second example has only three candidate lines: two host candidates on 192.168.1.20 (one UDP, one TCP with tcptype active) and one server-reflexive candidate. The report warns: “No relay candidates: if both sides are behind strict firewalls or symmetric NAT, the call cannot connect.”

How to read the result

  • Media sections — one row per m= line. Rejected means the port is 0: that stream was stopped or refused.
  • Encrypted — browsers only accept WebRTC media with a DTLS fingerprint. “no” here explains an immediate failure.
  • Host / Server-reflexive / Relay — the three kinds of paths. Host works only on the same network; reflexive candidates come from a STUN server and work through most home routers; relay candidates come from a TURN server and work almost everywhere.
  • Address kind — mdns (hidden local address), ipv4-private, ipv4-public, ipv6.
  • Notes — for example trickle ICE without candidates: the candidates travel separately, so paste them too.

Tips and common mistakes

  • An offer with no candidates is normal with trickle ICE. Collect the candidate lines as well before you judge the connection.
  • Only host candidates on both sides means no STUN server was configured: calls only work in the same network.
  • Only TCP candidates suggest UDP is blocked; expect delay, and offer TURN over TLS on port 443 or 5349.
  • Keep “Hide the last part of IP addresses” on when you post the result in a ticket. Officeloft shows the same report for its live calls under Connection details.

FAQ

Is the SDP sent to anybody?

The tool page sends your text to our server to compute the report and does not keep it. Inside Officeloft the same engine runs in your browser.

Why is the ICE password hidden?

Together with the username fragment it authenticates connectivity checks. The length is enough to see that it is there.

What is an mDNS candidate?

Browsers replace local IP addresses with random names ending in .local so websites cannot read your local network address. Both sides on the same network still find each other.

Does a relay candidate mean the call uses the relay?

No. It only means the relay is available. The browsers pick the best working pair; the relay is used when direct paths fail.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://officeloftsdpinspector.usefulweb.app/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://officeloftsdpinspector.usefulweb.app/mcp · tool name officeloft_sdp_inspector
Example request
curl -s -X POST https://officeloftsdpinspector.usefulweb.app/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{…see OpenAPI examples…}'
Feedback · ideas & bug reports welcome