> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /api/rspeedy/rspeedy.server.port.md.

# 

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](/api/rspeedy/index.md) > [@lynx-js/rspeedy](/api/rspeedy/rspeedy.md) > [Server](/api/rspeedy/rspeedy.server.md) > [port](/api/rspeedy/rspeedy.server.port.md)

## Server.port property

Specify the port that the Rspeedy Server listens to.

**Signature:**

```typescript
port?: number | undefined;
```

## Default Value

Rsbuild defaults this option to `3000`<!-- -->.

## Remarks

By default, the server automatically increments the port number when the configured port is occupied.

## Example

Set the port to a custom value:

```js
import { defineConfig } from '@lynx-js/rspeedy'
export default defineConfig({
  server: {
    port: 3470,
  },
})
```
