---
title: "server"
canonical: "https://help.vicon.com/space/Shogun16/13340245/server"
format: markdown
---
# Description

Turns the server on and off.

This command allows you receive remote script commands.

## Functional area

Remote control

# Command syntax

## Syntax

|  |
| --- |
| `server on/off/toggle ``[-ip string] ``[-port string] [-connectPort string]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `on/off/toggle` | boolean | yes | Turn the server on or off |

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `ip` |  | string | — | Specifies the IP address |
| `port` | 1 | string | — | Specifies the port to use for the network socket connection |
| `connectPort` |  | string |  |  |

## Return value

void

## Examples

```plaintext
// This command will enable the server 
server on -port 4344;
```

# Additional information

## Related commands

- [client](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340041)
- [remoteControl](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13341284)
- [sendRemote](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340410)