# TunnelPortNotAllowedError

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_exceptions/TunnelPortNotAllowedError)

The daemon rejected the port as not allowed.

## Signature

```python
TunnelPortNotAllowedError(
    self,
    message: str,
    *,
    port: int,
)
```

## Extends

- `TunnelError`

## Constructors

```python
__init__(
    self,
    message: str,
    *,
    port: int,
)
```

| Name | Type |
|------|------|
| `message` | `str` |
| `port` | `int` |


## Properties

- `port`

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/fcda9320ff067c3d3857e9e3d088fc1eb0643fc4/python/langsmith/sandbox/_exceptions.py#L300)