# vpn port

## Syntax

```
[no] vpn port <n>
```

## Syntax Description

<table><thead><tr><th width="203">Keyword</th><th>Description</th></tr></thead><tbody><tr><td><code>no</code></td><td>(Optional) Use the default WireGuard UDP port number.</td></tr><tr><td>n</td><td>The desired UDP port number in the range 1-65535.</td></tr></tbody></table>

## Defaults

The default WireGuard UDP port number is 51820

## Usage Guidelines

This command sets the UDP port number on which Island will listen for incoming WireGuard connections.

## Examples

```
vpn port 30719
```

## Related Commands


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.islandrouter.com/island-router-cli-2.3.2/commands/vpn-port.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
