CS FundamentalsHardGATE CS · Product company CS fundamentals

Two hosts, each behind a different NAT, want to set up a direct UDP connection for a video call. Why are STUN/TURN servers used?

  1. A. STUN assigns public IP addresses to hosts behind NAT
  2. B. TURN converts the UDP stream to TCP so NAT can forward it
  3. C. STUN reveals each public IP:port for hole punching; TURN relays if that fails
  4. D. They replace DNS so the hosts can find each other's private addresses

Correct answer: C. STUN reveals each public IP:port for hole punching; TURN relays if that fails

NATs drop unsolicited inbound packets, and hosts only know their private addresses. STUN reveals the external mapping; both sides then send to each other's public endpoint to open mappings. Symmetric NATs often defeat this, so TURN relays the media.

More Computer Networks questions

Exams that ask this topic