# OpcServerBinding Members

> Reference: Provides a set of options used when binding a server instance to a network interface.

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

## Properties

### Addresses

<span class="api-meta">since v2.15</span>

Gets a collection of [IPAddress](https://learn.microsoft.com/dotnet/api/system.net.ipaddress) objects to use to bind to the according network interfaces.

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

```csharp
public IPAddressCollection Addresses { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Addresses As IPAddressCollection
```

</div>

**Property value**

[IPAddressCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.ipaddresscollection/)

An instance of the [IPAddressCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.ipaddresscollection/) class with the [IPAddress](https://learn.microsoft.com/dotnet/api/system.net.ipaddress) objects identifying the network interfaces to bind to.

**Remarks**

In case there the collection is empty [Any](https://learn.microsoft.com/dotnet/api/system.net.ipaddress.any) and/or [IPv6Any](https://learn.microsoft.com/dotnet/api/system.net.ipaddress.ipv6any) is used instead (see [AddressScope](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverbinding/members#addressscope)).

### AddressScope

Gets or sets the address scope the server is to be bound to.

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

```csharp
public OpcAddressScope AddressScope { get; set; }
```

</div>

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

```vbnet
Public Property AddressScope As OpcAddressScope
```

</div>

**Property value**

[OpcAddressScope](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddressscope/)

One of the members defined by the [OpcAddressScope](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddressscope/) enumeration. The default value is [IPvX](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddressscope/#ipvx).

**Remarks**

Using this property it is possible to define which [IPAddress](https://learn.microsoft.com/dotnet/api/system.net.ipaddress) scope is bound to a [Socket](https://learn.microsoft.com/dotnet/api/system.net.sockets.socket) instance used by the server. For more information about the supported scopes see [OpcAddressScope](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcaddressscope/).

### UseExclusiveAddress

<span class="api-meta">since v2.54</span>

Gets or sets a value that indicates whether the listener socket should use exclusive address when binding, which allows only one process to bind to a specific port.

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

```csharp
public bool UseExclusiveAddress { get; set; }
```

</div>

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

```vbnet
Public Property UseExclusiveAddress As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

`true` to use exclusive address when binding to the port, `false` to not use it. The default is `true`.
