# OpcClient.ServerAddress Property

> Reference: Gets or sets the Uri of the OPC UA server to operate on.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcClient</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcClient Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Gets or sets the [Uri](https://learn.microsoft.com/dotnet/api/system.uri) of the OPC UA server to operate on.

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

```csharp
public Uri ServerAddress { get; set; }
```

</div>

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

```vbnet
Public Property ServerAddress As Uri
```

</div>

**Property value**

[Uri](https://learn.microsoft.com/dotnet/api/system.uri)

An instance of the [Uri](https://learn.microsoft.com/dotnet/api/system.uri) class which provides the necessary resource information to establish a connection to the server to operate on.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The value is a null reference (Nothing in Visual Basic). |
