# OpcClient.ConnectCore Method

> Reference: Performs all necessary tasks to establish a connection to the server identified by the ServerAddress and creates/activates a new session to access the OPC UA services provided by the server.

<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>

<span class="api-meta">protected · virtual</span>

Performs all necessary tasks to establish a connection to the server identified by the [ServerAddress](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclient/serveraddress) and creates/activates a new session to access the OPC UA services provided by the server.

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

```csharp
protected virtual void ConnectCore()
```

</div>

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

```vbnet
Protected Overridable Sub ConnectCore()
```

</div>
