Coder supports the use of WebRTC STUN, enabling point-to-point, direct connections to workspaces. Direct connections to workspaces help avoid the need to proxy traffic, reducing latency.

To connect to workspaces using WebRTC STUN:

  1. In the Coder UI, go to Manage > Admin > Infrastructure.
  2. Scroll down to P2P workspace connections, and provide the STUN URI.

If you don't have a STUN server, you can use Google's publicly accessible option. The URL for Google's STUN server is

See an opportunity to improve our docs? Make an edit.