mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
e5e1cfe4c8
## Summary Add `bash filename="Terminal"` to improve readability. ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
28 lines
606 B
Plaintext
28 lines
606 B
Plaintext
---
|
|
title: Reserved Port
|
|
---
|
|
|
|
## Why This Error Occurred
|
|
|
|
Server was started on a reserved port. For example, `4045` is reserved for the Network Paging Protocol (npp).
|
|
|
|
```bash filename="Terminal"
|
|
next start -p 4045
|
|
```
|
|
|
|
or
|
|
|
|
```bash filename="Terminal"
|
|
next dev --port 4045
|
|
```
|
|
|
|
Starting the server on a reserved port will result in an error.
|
|
|
|
## Possible Ways to Fix It
|
|
|
|
Change the provided port to ensure it's not listed in the [Port Blocking](https://fetch.spec.whatwg.org/#port-blocking) section of WHATWG's fetch spec.
|
|
|
|
## Useful Links
|
|
|
|
- [Port blocking](https://fetch.spec.whatwg.org/#port-blocking)
|