> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# setProxyUrl()

> Sets or clears the proxy URL for routing Daily connections through a custom proxy server.

`setProxyUrl(proxyUrl?)`

<Badge color="green">{"✓"} Prebuilt</Badge> <Badge color="green">{"✓"} Custom</Badge>

<Note>
  This is part of the **Advanced Firewall Control** add-on. [Contact Sales](https://www.daily.co/company/contact/sales/) to enable this feature.
</Note>

Updates or clears the [`proxyUrl`](/reference/daily-js/types/daily-call-options#param-proxy-url) setting at runtime. Use this when participants are behind firewall policies that block direct access to Daily's web domains — the proxy server forwards Daily's HTTPS and WebSocket connections on their behalf.

The `proxyUrl` is intended to be set at call creation time via `createFrame()` or `createCallObject()`. Use `setProxyUrl()` to change or clear it dynamically.

## Parameters

<ParamField body="proxyUrl" type="string">
  The URL of your proxy server. If omitted or empty, the proxy setting is cleared and connections go directly to Daily.
</ParamField>

## Return value

Returns `this` for chaining.

## Proxy requirements

The proxy server must forward HTTPS connections to:

* `https://prod-ks.pluot.blue/*`
* `https://c.daily.co/*`
* `https://gs.daily.co/*`

It must also proxy HTTPS-to-WebSocket upgrades for `*.wss.daily.co` and `*-wss.daily.co`. Proxying all of `*.daily.co` is recommended if possible.

<Note>
  The URLs above are subject to change in future releases of `daily-js`.
</Note>

## Examples

```javascript theme={null}
// Set at call creation time
const call = Daily.createFrame({
  dailyConfig: {
    proxyUrl: 'https://my-proxy-server:8080',
  },
});

// Update at runtime
call.setProxyUrl('https://my-proxy-server:8080');

// Clear the proxy setting
call.setProxyUrl();
```

## See also

<CardGroup>
  <Card title="Types" icon="t" iconType="solid">
    * [DailyCallOptions: proxyUrl](/reference/daily-js/types/daily-call-options#param-proxy-url)
  </Card>

  <Card title="Methods" icon="code" iconType="solid">
    * [setIceConfig()](/reference/daily-js/instance-methods/set-ice-config)
  </Card>

  <Card title="Guides" icon="book-open" iconType="solid">
    * [Corporate firewalls, NATs, and allowed IP list](/docs/guides/privacy-and-security/corporate-firewalls-nats-allowed-ip-list)
  </Card>
</CardGroup>
