Which addresses could we try?
01ICE gathers possible places to reach a device. A home address, an outside observation and a borrowed relay address have different origins.
Follow these objects, then change one choice below.
Lea wants to reach Sam
There may be several addresses worth trying. One label alone is not a working path.
Gather places to try
What happens if you change this?
Change one choice and see its effect. Restart restores the original example.
Obtain a TURN relay address when needed.
Key idea: Gathering an address gives us a place to try, not proof that a friend can reach it.
Terms
- Candidate
- A transport address associated with an ICE component, with a type and other information.
- Host / server-reflexive / relayed
- Local endpoint, externally observed mapping, or a relay allocation. A peer-reflexive address can also be learned from checks.
Rules & examples
Gathering an address gives us a place to try, not proof that a friend can reach it.
- Host candidates come from local interfaces.
- Server-reflexive candidates describe a NAT-mapped address discovered using STUN.
- Relayed candidates use a TURN allocation.
The illustration is schematic. Example values are illustrative; profiles and later security guidance can add requirements.
Bounded IPv4 examples: host 10.0.0.2:5000, server-reflexive observation 203.0.113.7:62000, relayed allocation 203.0.113.40:55000. The TURN choice assumes an allocation and required permissions. STUN observations can differ by destination and do not classify every NAT. ICE also supports peer-reflexive candidates learned during checks; they are explained here but not generated by this gathering fixture. No checks have run, so no pair is valid or selected merely from this list.
Sources
New to this? Start hereA quick picture + helpful background
Finding a route and sending media are separate jobs.
Some messages set up a conversation or discover a reachable address. Other packets carry the audio or video. Follow those jobs separately.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
This specification replaces RFC 5245 and separates the core ICE procedure from its signaling usage.
Read the updated RFC section ↗