By default jekyll serve runs on port 4000. To run it on a different port:

jekyll serve --port 3100

If you are running jekyll on a virtual machine and want to access it from your host machine:

jekyll serve --host (runs on port 4000)
jekyll serve --host --port 3200

To preview site with drafts:

  1. create folder _drafts at root
  2. create file within _drafts folder, for example
  3. run jekyll serve --drafts