# OpcSocketIdentity Class

> Reference: Represents the local and the remote endpoint of a connection (see Socket).

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

<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>
<dt>Members</dt>
<dd><a href="./members">OpcSocketIdentity Members</a></dd>
</dl>

Represents the local and the remote endpoint of a connection (see [Socket](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#socket)).

## Syntax

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

```csharp
public class OpcSocketIdentity
```

</div>

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

```vbnet
Public Class OpcSocketIdentity
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcSocketIdentity**

## Constructors

| Name | Description |
|---|---|
| [OpcSocketIdentity](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsocketidentity/members#opcsocketidentity) | Initializes a new instance of the OpcSocketIdentity class using the `localEndpoint` and `remoteEndpoint` specified. |

## Properties

| Name | Description |
|---|---|
| [LocalEndpoint](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsocketidentity/members#localendpoint) | Gets the local endpoint of the connection. |
| [RemoteEndpoint](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsocketidentity/members#remoteendpoint) | Gets the remote endpoint of the connection. |

## Methods

| Name | Description |
|---|---|
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcsocketidentity/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the connection. |

## Applies to

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