Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 04b2e56

Browse files
authored
Add changing the hostname to the cli doc (vercel#25971)
## Documentation / Examples - [x] Make sure the linting passes
1 parent 89caf1b commit 04b2e56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/api-reference/cli.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ The application will start at `http://localhost:3000` by default. The default po
7474
npx next dev -p 4000
7575
```
7676

77+
Similarly, you can also set the hostname to be different from the default of `0.0.0.0`, this can be useful for making the application available for other devices on the network. The default hostname can be changed with `-H`, like so:
78+
79+
```bash
80+
npx next dev -H 192.168.1.2
81+
```
82+
7783
## Production
7884

7985
`next start` starts the application in production mode. The application should be compiled with [`next build`](#build) first.

0 commit comments

Comments
 (0)