# Why does my backend work on AWS without a TURN server, but needs one on GCP?

**URL:** https://mediasoup.discourse.group/t/why-does-my-backend-work-on-aws-without-a-turn-server-but-needs-one-on-gcp/6812
**Category:** Deployment & Scalability
**Created:** [August 11, 2025, 9:50am UTC](https://mediasoup.discourse.group/t/why-does-my-backend-work-on-aws-without-a-turn-server-but-needs-one-on-gcp/6812 "2025-08-11T09:50:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sandilya27](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/sandilya27/32/2888_2.png) [@sandilya27](https://mediasoup.discourse.group/u/sandilya27)
#### Post date: [August 11, 2025, 9:50am UTC](https://mediasoup.discourse.group/t/why-does-my-backend-work-on-aws-without-a-turn-server-but-needs-one-on-gcp/6812/1 "2025-08-11T09:50:31Z")

</div>

I have a MediaSoup backend setup that works fine on AWS without configuring a TURN server.  
However, when I deploy the same setup to GCP, peer connections fail unless I configure a TURN server. Can anyone explain the reason behind it?

---

<div class="post-metadata">

### Author: ![copiltembel](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@copiltembel](https://mediasoup.discourse.group/u/copiltembel)
#### Post date: [August 11, 2025, 4:11pm UTC](https://mediasoup.discourse.group/t/why-does-my-backend-work-on-aws-without-a-turn-server-but-needs-one-on-gcp/6812/2 "2025-08-11T16:11:19Z")

</div>

Check the GCP networking config, more specifically the firewall configuration - is it allowing a connection on the mediasoup ports from any address?

---

<div class="post-metadata">

### Author: ![sandilya27](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/sandilya27/32/2888_2.png) [@sandilya27](https://mediasoup.discourse.group/u/sandilya27)
#### Post date: [August 14, 2025, 5:53am UTC](https://mediasoup.discourse.group/t/why-does-my-backend-work-on-aws-without-a-turn-server-but-needs-one-on-gcp/6812/3 "2025-08-14T05:53:17Z")

</div>

I’ve opened both TCP and UDP connections for the port range 40000–49999.
