Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/en/api/rspeedy/rspeedy.server.host.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,20 @@ Specify the host that the Rspeedy Server listens to.
```typescript
host?: string | undefined;
```

## Remarks

By default, the server listens on local network IP, for example, `192.168.1.50`, verify your local net IP by the command `ifconfig` on your system for (en0 for MacOS and eth0 for LinuxOS users). In case you have multiple local network IP(s) particularly when you are running dockers on the host machine, then you can specify your desired host IP

## Example

Set the host to a custom value:

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