Skip to content

How to specify the port in MkDocs #3706

Answered by pawamoy
Njoxpy asked this question in Q&A
Discussion options

You must be logged in to vote

You're looking at the -a option, see https://www.mkdocs.org/user-guide/cli/#mkdocs-serve:

-a, --dev-addr text IP address and port to serve documentation locally (default: localhost:8000)

Example:

mkdocs serve -a localhost:9999

Replies: 1 comment

Comment options

pawamoy
May 16, 2024
Maintainer Sponsor

You must be logged in to vote
0 replies
Answer selected by Njoxpy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3705 on May 16, 2024 16:49.