# WebRTC: ICE failed, add a STUN server and see about:webrtc for more details

**URL:** <https://mediasoup.discourse.group/t/webrtc-ice-failed-add-a-stun-server-and-see-about-webrtc-for-more-details/5579>\
**Category:** mediasoup libraries\
**Created:** [October 9, 2023, 9:10am UTC](https://mediasoup.discourse.group/t/webrtc-ice-failed-add-a-stun-server-and-see-about-webrtc-for-more-details/5579 "2023-10-09T09:10:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kaushalparajuli](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/kaushalparajuli/32/2360_2.png) [@Kaushalparajuli](https://mediasoup.discourse.group/u/Kaushalparajuli)\
**Post date:** [October 9, 2023, 9:10am UTC](https://mediasoup.discourse.group/t/webrtc-ice-failed-add-a-stun-server-and-see-about-webrtc-for-more-details/5579/1 "2023-10-09T09:10:14Z")

</div>

im getting ice connection failed error.  
currently i have used

listenIP : 0.0.0.0  
announcedIP: 202.51.1.167

i have disabled firewall. but still not working . please give any solution

 ![Screenshot 2023-10-09 at 15.02.29](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/a/a808e88ae86bb6af178c291563967aaedc07784e.png)

---

<div class="post-metadata">

**Author:** ![snnz](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/snnz/32/693_2.png) [@snnz](https://mediasoup.discourse.group/u/snnz)\
**Post date:** [October 9, 2023, 9:54am UTC](https://mediasoup.discourse.group/t/webrtc-ice-failed-add-a-stun-server-and-see-about-webrtc-for-more-details/5579/2 "2023-10-09T09:54:33Z")

</div>

Check that the ports are available from the outside with some simpler tool like `netcat`, etc.

---

<div class="post-metadata">

**Author:** ![Kaushalparajuli](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/kaushalparajuli/32/2360_2.png) [@Kaushalparajuli](https://mediasoup.discourse.group/u/Kaushalparajuli)\
**Post date:** [October 9, 2023, 4:26pm UTC](https://mediasoup.discourse.group/t/webrtc-ice-failed-add-a-stun-server-and-see-about-webrtc-for-more-details/5579/3 "2023-10-09T16:26:36Z")

</div>

this is my nginx configuration please check if any wrong please correct. thank you

server {  
listen 80;  
listen 443 ssl;  
index index.html;  
#server\_name mediasoup-server.ambitionguru.xyz;

```
 server_name _;
 error_log /var/log/nginx/mediasoup-server.ambitionguru.xyz.log;

root /var/www/html/ag-media-soup;

```

ssl\_certificate /etc/nginx/ssl/selfsigned.crt;  
ssl\_certificate\_key /etc/nginx/ssl/selfsigned.key;

```
location / {
    proxy_pass http://localhost:8001;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    add_header Access-Control-Allow-Origin *;
}

# Define a range of ports for WebRTC

```

# set\_real\_ip\_from 202.51.3.50; # Add your server’s IP here

```
#real_ip_header X-Real-IP;

```

}

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [October 9, 2023, 5:18pm UTC](https://mediasoup.discourse.group/t/webrtc-ice-failed-add-a-stun-server-and-see-about-webrtc-for-more-details/5579/4 "2023-10-09T17:18:48Z")

</div>

> [@Kaushalparajuli](#):
>
> this is my nginx configuration please check if any wrong please correct. thank you

This is the mediasoup documentation please check if any wrong please correct. thanks you

> **[mediasoup :: v3](https://mediasoup.org/documentation/v3/)**
>
> Cutting Edge WebRTC Video Conferencing

---

<div class="post-metadata">

**Author:** ![Kaushalparajuli](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/kaushalparajuli/32/2360_2.png) [@Kaushalparajuli](https://mediasoup.discourse.group/u/Kaushalparajuli)\
**Post date:** [October 9, 2023, 5:56pm UTC](https://mediasoup.discourse.group/t/webrtc-ice-failed-add-a-stun-server-and-see-about-webrtc-for-more-details/5579/5 "2023-10-09T17:56:26Z")

</div>

Actually i have one media server and two client side domain which connects to same server.  
mediaserver → client side frontend  
 → admin side frontend

on client side two users can connect  
but when i try to connect admin side and client side. Ice connection error occurs.  
is there anything left to configure ?
