ContextCleaner: see every entry in the Windows 11 right-click menu, and which app added it — on the Microsoft Store.
Engineering PortDetective

Jekyll Serve Port 4000 Already in Use on Windows: Find the Process and Fix It

Published November 25, 2026 Updated November 25, 2026 7 min read

When bundle exec jekyll serve stops with Errno::EADDRINUSE, the WEBrick server Jekyll starts could not bind its port, which is 4000 by default. If the error instead says no acceptor (port is in use or requires root privileges), the LiveReload server could not bind port 35729. On Windows the usual owner is an earlier jekyll serve that is still running, often one started with --detach. Port Detective from Automata Labs shows which process and PID hold the port, so you can stop the leftover server or move Jekyll to another port with confidence.

See which process owns port 4000 before you run jekyll serve again.

Get it fromMicrosoft

Which ports does jekyll serve use?

Jekyll’s documentation lists the serve options, and its source code fills in the defaults:

SettingDefaultConfig keyCommand-line flag
Local server port4000port: PORT-P, --port PORT
Local server host127.0.0.1 (shown as localhost)host: HOSTNAME-H, --host HOSTNAME
LiveReload port35729livereload_port: PORT--livereload-port PORT
Detach from terminaloffdetach: BOOL-B, --detach

The LiveReload port only matters when you pass --livereload (or set livereload: true). Jekyll’s documentation notes that setting livereload_port in the config file is supported from Jekyll 4.4.0; older versions take it on the command line only.

What do the two errors mean?

Errno::EADDRINUSE is Ruby’s exception for the operating system’s “address already in use” error. Jekyll hands its host and port to WEBrick, and WEBrick asks Windows to listen on that address. If another socket already listens there, the bind fails and Jekyll stops before printing its usual Server address: line.

LiveReload is different. Jekyll runs it on EventMachine, and EventMachine raises a RuntimeError with the text no acceptor (port is in use or requires root privileges) when it cannot open its listening socket. On Windows the “root privileges” half rarely applies; a taken port is the usual reason.

What you seeWhat failedMost likely cause
Errno::EADDRINUSE with port 4000The site serverAnother jekyll serve, a detached server, or another app on 4000
Errno::EADDRINUSE with a port you setThe site serverSomething else already uses your custom port
no acceptor (port is in use ...)The LiveReload server on 35729A second Jekyll site with LiveReload, or another tool using the same port

How do you find what is holding port 4000 on Windows?

With Port Detective

  1. Open Port Detective.
  2. Type 4000 (or 35729) in the port lookup.
  3. Read the process name, PID and state.
  4. If it is ruby.exe from a site you started earlier, stop that server. If it is a program you do not recognise, leave it alone and change Jekyll’s port instead.

With built-in tools

netstat -ano | findstr :4000
tasklist /FI "PID eq 12345"

Replace 12345 with the PID in the last column of the LISTENING line.

MethodGood atWatch out for
Port DetectivePort to process name, PID and state in one viewEnding a process from the app is a Pro feature
netstat plus tasklistNo installTwo commands; pick the LISTENING line, not TIME_WAIT
Closing terminalsClears servers those terminals startedMisses detached servers, which have no terminal

For the same pattern with other dev servers, see the port already in use guide and how to find the process using a port.

Map port 4000 or 35729 to a process and PID in one lookup, then decide what to stop.

Get it fromMicrosoft

Why is an old Jekyll server still running?

The common causes on Windows:

  • A detached server. jekyll serve --detach (or -B) frees the terminal and keeps the server running in the background. Closing the window does not stop it, and the next jekyll serve collides with it on 4000.
  • Two sites at once. Every Jekyll site wants 4000 unless you change it. Serving a second site, or a theme demo, while the first is running will always collide.
  • Two LiveReload servers. Two sites can be moved to different site ports and still clash on 35729 if both use LiveReload.
  • An editor terminal. Integrated terminals in editors can keep a server alive after you stop paying attention to that tab.
  • Another program. 4000 is not reserved for Jekyll. Any app can listen on it.

If the lookup shows only TIME_WAIT entries and no listener, wait a moment and retry. If a LISTENING line has a PID, that process is the blocker.

What if nothing seems to be listening on 4000?

Check whether Windows has reserved a port range that covers 4000:

netsh interface ipv4 show excludedportrange protocol=tcp

If 4000 falls inside a listed range, no process owns it and there is nothing to end. Port Detective will show no owner, which is a useful answer in itself: stop hunting and pick another port. Our page on excluded port ranges blocking a port explains where these ranges come from.

How do you change Jekyll’s ports?

On the command line, for one run:

bundle exec jekyll serve --port 4001 --livereload --livereload-port 35730

Or in _config.yml, so the whole team gets the same values:

port: 4001
livereload_port: 35730

Remember the Jekyll 4.4.0 note above if your project pins an older version. Two more tips:

  • Give each site you serve side by side its own pair of ports, such as 4000/35729 and 4001/35730.
  • url is set to the localhost address automatically while jekyll serve runs, so links built with absolute_url follow the new port without edits.

Should you free the port or change it?

Free it when the holder is your own leftover ruby.exe, especially a detached server from earlier in the day. Nothing in the site needs editing.

Change it when you serve several sites at once, when 4000 sits in a reserved range, or when the owner is an app you cannot identify. Ending an unknown process just to win a port number is the riskier choice.

Free vs Pro for this job

Free Port Detective has fewer features than Port Detective Pro. The free edition covers live socket tracking and the port lookup, which is enough to see which process and PID own 4000. One-click termination guarded by a process token, Port Guard notifications when a watched port is taken, and deeper details such as executable paths are in Pro. The Pro listing offers a free trial.

If the collision happens now and then, Free is enough. If you hop between Jekyll, Node and other local servers every day, Pro saves the trip back to taskkill.

Frequently asked questions

Is Jekyll supported on Windows?

Jekyll’s own installation page says Windows is not an officially supported platform but can run Jekyll with the right setup, and it recommends RubyInstaller with the Devkit.

How do I stop a detached Jekyll server?

Find its PID with Port Detective or netstat -ano | findstr :4000, confirm it is ruby.exe from your site, then end that process.

What does “no acceptor” mean in jekyll serve?

The site server was fine, but the LiveReload server could not bind its port, 35729 by default. Another site with LiveReload is the usual cause. Use --livereload-port to pick a different port.

Does this affect GitHub Pages or my live site?

No. jekyll serve is a local preview server. Port numbers only matter on your own PC.

Try Port Detective

Get Port Detective (Free) or Port Detective Pro from the Microsoft Store. Free has fewer features than Pro, and Pro offers a free trial on its listing. Both listings require Windows 10 version 17763.0 or higher.

Find the leftover Jekyll server on port 4000 and get your preview running again.

Get it fromMicrosoft

Port Detective is a product of Automata Labs. Jekyll is a trademark of its respective owner. Windows is a trademark of the Microsoft group of companies.

Last updated 25 November 2026. Published by Automata Labs, a software company in Canada.

// release_radar

Get notified about new releases.

We build native, local-first tools for professionals who refuse SaaS fatigue. Drop your email to hear about new apps, major updates, and zero-telemetry releases as they land on the Microsoft Store. No spam — just release news.