randoms.chat

Technical help

What STUN and TURN do in a browser call

Learn how browsers find call paths, when a relay can help and what a basic connection test can tell you.

A man works beside a router and gently curved network cords.

If two browsers can show their own cameras but cannot see each other, they may have trouble finding a network path for the call. STUN and TURN help with that part of the connection. STUN can identify an address as seen from outside the router. TURN provides a relay that can pass traffic between participants. The website or calling application configures these services.

What STUN contributes

A browser normally sees local addresses that work inside its own network. A router can translate those addresses when sending traffic out to the internet. STUN can tell the browser how an external server sees the apparent address and port. That information can be one candidate for a connection to another browser. The browsers still have to check whether they can use any candidate together.

STUN doesn't move your camera stream between browsers just by identifying that address. When a peer path succeeds, the traffic can use that path. A network’s behaviour may still prevent it. WebRTC’s peer connection documentation explains the candidate gathering and signalling steps. WebRTC’s peer connection guide

What TURN contributes

TURN gives clients a relay address. Both sides send the applicable connection traffic through a relay instead of depending on a direct communication path. A direct route can be impractical through particular routers or managed networks. Some applications also choose to prefer or require a relay as part of their service design.

A relay adds another network hop and transfers user traffic, so its capacity and location can matter. A good route depends on the particular call and network, even with a good connection to the relay. The operator is responsible for configuring and monitoring the relay if its service uses one. WebRTC’s TURN documentation

In practical terms, changing the camera permission cannot fix an unavailable relay. At the same time, a relay does not make a private camera functional if a device permission is denied. Read the browser calling overview to separate media capture, connection signalling and media transport.

Check what happens on two ordinary networks

Suppose a call works with a known contact from home but fails with the same contact when you use another connection. Both people can still see their own preview. Note whether the app reports waiting, connecting or disconnected. If you control the device and trying another authorised connection is easy, compare the exact same browser and call settings there. A difference gives you evidence about the network path, without telling you which server or protocol failed.

Ask the operator or network administrator for help if you are on a managed network. Give them the time, browser, relevant mode and message displayed. Network restrictions may be deliberate. A text or audio option that already meets your needs can save time without requiring network changes.

Our local WebRTC tester establishes a local data channel without making a real call to a separate person. It can check whether your browser supports a basic peer connection. It cannot establish that a public relay used by a particular service is reachable.

Understand what the route can reveal

Which network addresses are visible depends on browser behaviour and how the service establishes calls. A relay can change what address is exposed to the other participant through that route. It does not decide how a site records a session, what your profile shows, or who can see your face or hear your voice. Check the service’s current privacy notice for its actual setup.

The public IP checker shows what address Randoms.chat receives over HTTPS for that request. A call can travel by a different path, so the tool cannot show the address another service or participant would see during a real video call.

Frequently asked questions

Are STUN and TURN the same?

STUN can help find an externally visible address and port. TURN can relay communication when the browsers use a relay path.

Can I tell from the preview whether a TURN server works?

No. A camera preview can run locally without testing the network connection. The operator needs to test its own relay and live call route separately.

Can a call work on one network and fail on another?

Yes. The paths available to the browsers can change with the network, device or service. Test the same conversation setup before drawing conclusions.