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

# Residential Proxies - UDP Targeting

Residential proxies support UDP targeting, which tells the gateway that a session will carry UDP traffic. The gateway then selects an exit that supports UDP and keeps the same exit IP for the session's TCP and UDP traffic.

## How to Target UDP

To target a UDP-capable exit, add the `-mode-udp` parameter to your proxy username.

| Mode | Parameter   | Alternative parameter |
| ---- | ----------- | --------------------- |
| UDP  | `-mode-udp` | `-pool-udp`           |

Both parameters work the same way, so you can use either one.

For example, to request a UDP-capable exit for a session:

```text Username theme={null}
user-session-abc-mode-udp
```

### Combining UDP Targeting with Other Parameters

UDP targeting can be combined with other Regular Residential parameters, including country targeting and sticky sessions. Parameters can be added in any order.

| Example                                            | Result                                                                |
| -------------------------------------------------- | --------------------------------------------------------------------- |
| `user-country-us-mode-udp`                         | UDP-capable exit in the United States                                 |
| `user-session-abc-lifetime-15-mode-udp`            | UDP-capable exit with a 15-minute sticky session                      |
| `user-country-us-session-abc-lifetime-15-mode-udp` | UDP-capable exit in the United States with a 15-minute sticky session |

## When to Use UDP Targeting

UDP targeting is optional. UDP traffic works without it, but you should add it when a session starts with a TCP request and then sends UDP traffic on the same session. This ensures both types of traffic use the same exit IP.

| Scenario                               | Use `-mode-udp`? |
| -------------------------------------- | ---------------- |
| Session opens with TCP, then sends UDP | Yes              |
| Session sends only UDP traffic         | Optional         |

<Note>
  Replace `user` with your own proxy username in all examples.
</Note>
