Our Journey to Better Calls: Why SalamChat Switched to Public STUN Servers

Yusuf Nugroho
Gravel Product & Tech
4 min readMay 18, 2024

Hey there, SalamChat friends! We’re always looking for ways to improve your experience with our app. Behind the scenes, we’ve made a significant change to make our voice and video calls even better. We’ve switched from managing our own STUN (Session Traversal Utilities for NAT) servers to using well-known public STUN servers, like those provided by Google. In this post, we’ll explain why this change is awesome for you and how it enhances your overall experience with SalamChat.

What’s a STUN Server, Anyway?

Before we dive in, let’s quickly explain what a STUN server does. When you make a voice or video call through SalamChat, your device needs to know its public IP address to connect with the other person. A STUN server helps your device figure out this public IP address, even if it’s behind a firewall or router.

The Challenges of Self-Hosting a STUN Server

Managing our own STUN servers was a big job that took away from our focus on making SalamChat amazing:

  • Constant Monitoring: We had to keep a close eye on the server to make sure it was always up and running.
  • Logging and Troubleshooting: We had to keep detailed logs and troubleshoot any problems that came up, which was time-consuming and required specialized knowledge.
  • Resource Intensive: Running a STUN server required a lot of computational resources and bandwidth, which was costly and complex to manage.

By switching to public STUN servers, we can focus more on making SalamChat an amazing experience for you!

Security and Reliability of Public STUN Servers

1. Security Measures

Public STUN servers, like those provided by Google, are designed with robust security measures. Here’s why you can trust them:

  • Encryption: While the initial STUN request might not always be encrypted, the actual communication between your device and the other person is encrypted using protocols like Transport Layer Security (TLS). This ensures that your voice and video calls remain private and secure.
  • No Sensitive Data Exposure: The only information exchanged with a STUN server is your public IP address and port number. No personal data or call content is shared, so there’s no risk of eavesdropping on your conversations.

2. Reliability

Public STUN servers are maintained by large, reputable companies with extensive resources. This means they offer high availability and reliability:

  • Google’s Infrastructure: Google’s STUN servers are part of their vast and robust infrastructure, ensuring they are always available and can handle high traffic volumes without issues.
  • Fallback Mechanisms: In case a public STUN server is temporarily unavailable, SalamChat is designed to switch to alternative servers seamlessly, ensuring uninterrupted service.

Addressing Common Concerns

Will Using Public STUN Servers Affect My Call Quality?

No way! Using public STUN servers won’t negatively impact your call quality. In fact, it can improve connectivity and reduce latency, making your calls even better.

Is There a Risk of Eavesdropping?

As mentioned earlier, the STUN server only helps establish the connection by providing the public IP address. The actual voice and video data are encrypted, ensuring that your conversations remain private and secure.

Conclusion

Switching to public STUN servers is a strategic move to enhance the reliability and security of SalamChat. By leveraging the robust infrastructure and security measures of well-known providers like Google, we can ensure that your voice and video calls are both seamless and secure. Rest assured, your privacy and the quality of your communication are our top priorities.

Ready to Experience the Best of SalamChat?

Download SalamChat now and discover a seamless and secure voice and video call experience. Visit salamchat.id or find us on the App Store and Play Store.

Follow Us on Social Media

Stay updated with the latest news and features by following us on Instagram and TikTok.

Our Journey Beyond SalamChat

At Gravel, we believe in going beyond just providing a great communication platform. Our journey has led us to explore other ways to make a positive impact on your daily life. Imagine a rainy day when water starts leaking through your roof. It’s a stressful situation, but that’s where our dedicated team steps in. Just as we ensure seamless communication, we also offer reliable construction services to build and maintain your home, tackling issues like water leakage with the same dedication and care.

And when it comes to sourcing quality materials for your home, we have a fantastic solution. Try using Gravel to easily purchase top-notch home materials. Whether it’s fixing a leak or building a new space, we’re here to support you every step of the way, just like we do with SalamChat.

--

--