# TextControl.ServiceAddress Property

> Gets or sets the IP address at which the websocket handler tries to connect to the Service. The default value is 127.0.0.1 (the local computer). Important: setting this property affects all instances of class Web.TextControl. It was not made static so it shows up in the Visual Studio designer.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Web`
- **Assembly:** `TXTextControl.Web.dll`, which the TX Text Control .NET Server setup installs, for .NET Framework; in no NuGet package
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextControl.ServiceAddress Property
- **476 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/serviceaddress-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/serviceaddress-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/serviceaddress-property/llms-full.txt

---

### Description

Gets or sets the IP address at which the websocket handler tries to connect to the Service. The default value is 127.0.0.1 (the local computer). Important: setting this property affects all instances of class Web.TextControl. It was not made static so it shows up in the Visual Studio designer.

### Syntax

```csharp
public System.Net.IPAddress ServiceAddress { get; set; }
```

```vbnet
Public Property ServiceAddress() As System.Net.IPAddress
```

### Examples

`ServiceAddress` belonged to the older server-control surface. In the current ASP.NET Core integration, use `TextControlSettings.WebSocketURL` for the corresponding editor configuration.

```csharp
textControlSettings.WebSocketURL = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControlSettings.WebSocketURL))
{
    Console.WriteLine($"Web Socket URL: {textControlSettings.WebSocketURL}");
}
```

```vbnet
textControlSettings.WebSocketURL = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControlSettings.WebSocketURL) Then
    Console.WriteLine($"Web Socket URL: {textControlSettings.WebSocketURL}")
End If
```

---

## Nearby

- **Previous:** [TextControl.Selection Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/selection-property/llms-full.txt)
- **Next:** [TextControl.ServicePort Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/serviceport-property/llms-full.txt)
