Jekyll / Hexo

Localhost 4000 Refused?

Port 4000 is standard for static site generators like Jekyll and Hexo. Ensure you started the server with `serve`.

Go to http://localhost:4000 →
Kill Port 4000
npx kill-port 4000

Starting Static Sites

If the page is blank, your generator might be building in the background or failed to bind.

1. Jekyll Command

Ensure you are in the root directory and Gemfile is installed.

bundle exec jekyll serve

2. Hexo Command

For Node.js based Hexo blogs:

hexo server

Developer Port Reference Guide

Frontend & Web
3000 React / Node / Default 3001 React Secondary
Backend & Infrastructure
5000 Flask / AirPlay 4000 Jekyll / Hexo
Database & Cache
3306 MySQL 5432 PostgreSQL
DevOps & Data Science
8888 Jupyter Notebook 9200 Elasticsearch 9090 Prometheus 15672 RabbitMQ UI 8500 Consul 127.0.0.1 Loopback IP