You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, Coder's networking uses Google's public STUN server. However, some organizations do not wish to use it, but still want users to be able to establish direct connections to Coder.
Scope of Work
Test several self-hosted STUN servers based on the following factors and pick 1-2 to recommend in our docs.
Portability: is it easy for users to deploy this onto Kubernetes or on their cloud provider as a VM
Reliability: is this maintained by a trusted source? it is still maintained
Compatibility with Coder: Does this work with Coder to allow users to get a direct connection
Update our offline documentation to mention a STUN server can be self hosted and link to the proper one
Update our networking docs to mention that a self-hosted STUN server can be used
Based on the quality of docs available by the STUN server, ensure users have clear directions to run the STUN server via a container (allowing Kubernetes/ECS deployments) and a VM. We may need to add some a guide ourself
Regarding the list of self-hostable STUN servers: Tailscale‘s derper has an embedded STUN, alternatively they also provide a standalone stun server called stund.
Hosting STUN in Kubernetes is a can of worms. In order to work correctly, the STUN server cannot be behind an ingress proxy which is how many organizations set up Kubernetes.
Activity
ThomasK33 commentedon Feb 12, 2025
Regarding the list of self-hostable STUN servers: Tailscale‘s derper has an embedded STUN, alternatively they also provide a standalone stun server called stund.
spikecurtis commentedon Feb 18, 2025
Hosting STUN in Kubernetes is a can of worms. In order to work correctly, the STUN server cannot be behind an ingress proxy which is how many organizations set up Kubernetes.
It is possible with the right networking, e.g. Calico peered with BGP to the corporate network, but it's nowhere near universal.
In order to keep things simple, we should instruct people to run STUN on a VM with a routable IP address on the corporate network.
nickvigilante commentedon May 29, 2026
This issue has been migrated to the Coder docs backlog in Linear as DOCS-310. Closing here to consolidate tracking.
docs: add guide for self-hosting a STUN server (#31996)