Call not connecting when stun run on public and openvidu on private in android

Hi team, i’m running coturn on public ip with example.test.com domain and openvidu server and kms server running on private ip. when i run the call through browser it is working fine but when i try from android app getting this error.
i take some packet trace for stun

722 67.870170 152.58.124.160 private ip STUN 64 Binding Request
723 67.870196 152.58.124.160 172.31.0.2 STUN 64 Binding Request
724 67.870200 152.58.124.160 172.31.0.2 STUN 64 Binding Request
725 67.870244 152.58.124.160 private ip STUN 64 Binding Request
726 67.870254 152.58.124.160 172.31.0.2 STUN 64 Binding Request
727 67.870256 152.58.124.160 172.31.0.2 STUN 64 Binding Request
728 67.870788 172.31.0.2 152.58.124.160 STUN 148 Binding Success Response XOR-MAPPED-ADDRESS: 152.58.124.160:49570 MAPPED-ADDRESS: 152.58.124.160:49570 RESPONSE-ORIGIN: 172.31.0.2:3478 OTHER-ADDRESS: 172.31.0.2:3479
729 67.870789 172.31.0.2 152.58.124.160 STUN 148 Binding Success Response XOR-MAPPED-ADDRESS: 152.58.124.160:45371 MAPPED-ADDRESS: 152.58.124.160:45371 RESPONSE-ORIGIN: 172.31.0.2:3478 OTHER-ADDRESS: 172.31.0.2:3479
730 67.870789 172.31.0.2 152.58.124.160 STUN 148 Binding Success Response XOR-MAPPED-ADDRESS: 152.58.124.160:45371 MAPPED-ADDRESS: 152.58.124.160:45371 RESPONSE-ORIGIN: 172.31.0.2:3478 OTHER-ADDRESS: 172.31.0.2:3479
731 67.870788 172.31.0.2 152.58.124.160 STUN 148 Binding Success Response XOR-MAPPED-ADDRESS: 152.58.124.160:49570 MAPPED-ADDRESS: 152.58.124.160:49570 RESPONSE-ORIGIN: 172.31.0.2:3478 OTHER-ADDRESS: 172.31.0.2:3479
732 67.870807 private ip 152.58.124.160 STUN 148 Binding Success Response XOR-MAPPED-ADDRESS: 152.58.124.160:49570 MAPPED-ADDRESS: 152.58.124.160:49570 RESPONSE-ORIGIN: 172.31.0.2:3478 OTHER-ADDRESS: 172.31.0.2:3479
733 67.870807 private ip 152.58.124.160 STUN 148 Binding Success Response XOR-MAPPED-ADDRESS: 152.58.124.160:45371 MAPPED-ADDRESS: 152.58.124.160:45371 RESPONSE-ORIGIN: 172.31.0.2:3478 OTHER-ADDRESS: 172.31.0.2:3479

[INFO] 2023-05-21 04:13:46,109 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t51] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChanged]: → endpoint: con_KVIo9FC2wo_str_CAM_IAQW_con_BQhgK3jQp6 (subscriber) | state: FAILED | componentId: 2 | streamId: 1 | timestamp: 1684642426108
[INFO] 2023-05-21 04:13:46,110 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t41] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChanged]: → endpoint: con_KVIo9FC2wo_str_CAM_IAQW_con_BQhgK3jQp6 (subscriber) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1684642426108

Notes: call working fine in browser and i’m facing these issue only in android app

How did you configured the Coturn Server? Are you using the default one deployed with OpenVidu? Or an external one?

If you are using an external Coturn, did you configure OpenVidu to use it, and how?

Read this doc carefully to know how to configure OpenVidu with an external Turn if it is your case: Allow users behind firewalls - OpenVidu Docs