# OpcAddressScope Enum

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
</dl>

Defines the different address scopes to use when binding a socket to a network interface.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public enum OpcAddressScope : byte
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
<Flags>
Public Enum OpcAddressScope As Byte
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [ValueType](https://learn.microsoft.com/dotnet/api/system.valuetype) → [Enum](https://learn.microsoft.com/dotnet/api/system.enum) → **OpcAddressScope**

## Fields

| Name | Value | Description |
|---|---|---|
| <a id="ipv4"></a>`IPv4` | `1` | All IPv4 addresses are bound by the [Socket](https://learn.microsoft.com/dotnet/api/system.net.sockets.socket) instance used. This means that the [Any](https://learn.microsoft.com/dotnet/api/system.net.ipaddress.any) address is used for the [IPEndPoint](https://learn.microsoft.com/dotnet/api/system.net.ipendpoint) the [Socket](https://learn.microsoft.com/dotnet/api/system.net.sockets.socket) is bound to. |
| <a id="ipv6"></a>`IPv6` | `2` | All IPv6 addresses are bound by the [Socket](https://learn.microsoft.com/dotnet/api/system.net.sockets.socket) instance used. This means that the [IPv6Any](https://learn.microsoft.com/dotnet/api/system.net.ipaddress.ipv6any) address is used for the [IPEndPoint](https://learn.microsoft.com/dotnet/api/system.net.ipendpoint) the [Socket](https://learn.microsoft.com/dotnet/api/system.net.sockets.socket) is bound to. |
| <a id="ipvx"></a>`IPvX` | `IPv4 \| IPv6` | All IPv4 and IPv6 addresses are bound by [Socket](https://learn.microsoft.com/dotnet/api/system.net.sockets.socket) instances. This member combines [IPv4](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddressscope/#ipv4) and [IPv6](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddressscope/#ipv6). |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.5–v2.59 |
