# TcpSocketActionV1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [TcpSocketActionV1](/reference/api/csharp/aspire.hosting.kubernetes/tcpsocketactionv1.md)
- Kind: `Properties`
- Members: `2`

Represents a TCP socket action configuration used in Kubernetes resources. This class is typically utilized for health or readiness probes or lifecycle handlers, allowing the definition of connectivity checks to a specified host and port via TCP.

## Host

- Name: `Host`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/TcpSocketActionV1.cs)

Specifies the hostname or IP address to be used for the TCP socket action.

```csharp
public string Host { get; set; }
```

## Port

- Name: `Port`
- Modifiers: `get; set`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/TcpSocketActionV1.cs)

Gets or sets the port number to access for the TCP socket action. This property specifies the numeric port on which the TCP connection should be established.

```csharp
public int Port { get; set; }
```
