---
sidebar_position: 1
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Start server
Starts a TCP server on the specified port
`Function StartServer(Val Port) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Port | - | Number, String | ✔ | Port number |
Returns: String, Arbitrary - Server object or error message
:::caution
**NOCLI:** данный метод недоступен для использования в CLI версии
:::
```bsl title="1C:Enterprise/OneScript code example"
```