---
title: "server"
canonical: "https://help.vicon.com/space/ShogunPost121/1253739195/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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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

> Macro (scroll-pagebreak)

## Examples

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

# Additional information

## Related commands

- [client](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737156)
- [remoteControl](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737674)
- [sendRemote](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736609)