# Connect with Cloud Proxy (/en/realtime-media/voice/build/manage-connection-and-quality/cloud-proxy/react-native)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Large enterprises, hospitals, universities, banks, and other institutions commonly deploy firewalls to meet their stringent security requirements. To ensure uninterrupted access to its services for enterprise users behind firewalls, Agora offers firewall whitelist and Cloud proxy services.

Admins enable users to use Voice SDK in network-restricted environments by adding specific IP addresses and ports to the firewall whitelist. Users make API calls to configure the Cloud proxy service.

## Understand the tech [#understand-the-tech]

Cloud proxy works as follows:

1. Voice SDK initiates a request to Cloud proxy.
2. Cloud proxy returns the corresponding proxy information.
3. Agora SDK sends data to Cloud proxy. Cloud proxy receives the data and transmits it to Agora SDRTN®.
4. SDRTN® returns data to Cloud proxy. Cloud proxy receives the data and sends it to the SDK.

**Cloud proxy workflow**

![image](https://assets-docs.agora.io/images/video-sdk/cloud-proxy-tech.svg)

## Prerequisites [#prerequisites]

Ensure that you have implemented the [SDK quickstart](../index.mdx) in your project.

## Implement Cloud Proxy [#implement-cloud-proxy]

      
  
      
  
      
  
      
  
      
  
      
  
      
  
      
    Take the following steps to use Cloud proxy in your app:

    1. Enable Cloud Proxy in [Agora Console](https://console.agora.io/):

       1. Log in to the console.
       2. Under **Projects**, locate the project that you want to edit, then click **Configure**.
       3. Under **All Features**, select **Cloud Proxy**.
       4. Click **Enable Cloud Proxy**.

          ![Enable Cloud Proxy](https://assets-docs.agora.io/images/video-sdk/enable-cloud-proxy.png)

    2. Configure the enterprise firewall to allow traffic from the IP address and port ranges in the [Agora Allowed IP List](../../reference/cloud-proxy-allowed-ips.md).

    3. Call `setCloudProxy` and set `proxyType` to `UdpProxy` or `TcpProxy` to enable Cloud proxy.

    4. Test if you can initiate audio and video calls or live broadcasts normally.

    5. To stop using Cloud proxy, call `setCloudProxy` and set `proxyType` to `NoneProxy`.

    6. To update the current cloud proxy type, call `setCloudProxy(NoneProxy)` first, then call `setCloudProxy` again and set the cloud proxy type.

    Call `setCloudProxy` outside the channel. Its settings are valid within the `RtcEngine` life cycle.

    ## Reference [#reference-7]

    This section contains content that completes the information on this page, or points you to documentation that explains other aspects to this product.

    ### Pricing [#pricing-7]

    Agora charges for use of Cloud Proxy as follows.

    ### Duration-based pricing [#duration-based-pricing-7]

    Duration-based pricing is based on the total number of minutes used per month across all users.

    | Duration                   | Price per 1000 minutes/month |
    | :------------------------- | ---------------------------: |
    | UDP Audio Duration         |                        $0.99 |
    | UDP video HD Duration      |                        $3.99 |
    | UDP video Full HD Duration |                        $8.99 |
    | UDP video 2K Duration      |                       $15.99 |
    | UDP video 2K+ Duration     |                       $35.99 |
    | TCP Audio Duration         |                        $0.99 |
    | TCP video HD Duration      |                        $3.99 |
    | TCP video Full HD Duration |                        $8.99 |
    | TCP video 2K Duration      |                       $15.99 |
    | TCP video 2K+ Duration     |                       $35.99 |

    For volume pricing discount, contact [Agora support](mailto\:support@agora.io).

    #### PCU-based pricing [#pcu-based-pricing-7]

    PCU is the maximum number of simultaneous users connected to the Cloud Proxy service at any point during the billing cycle. For PCU-based usage, Agora charges $500.00 for each VID.

    For volume pricing discount, contact [Agora support](mailto\:support@agora.io).

    ### IP addresses for Cloud Proxy [#ip-addresses-for-cloud-proxy-7]

    To use Agora Cloud Proxy, your end users must first configure their firewalls to trust the following [IP address and port ranges](../../reference/cloud-proxy-allowed-ips.md).

    <CalloutContainer type="warning">
      <CalloutDescription>
        * If a user is in an intranet firewall environment and uses `UdpProxy`, the services for Media Push and Co-hosting across channels are not available.
      </CalloutDescription>
    </CalloutContainer>

    ### API reference [#api-reference-7]

    * [`setCloudProxy`](https://api-ref.agora.io/en/video-sdk/react-native/4.x/API/class_irtcengine.html#api_irtcengine_setcloudproxy)

    
  
      
  
