while installing jykell i got this error. jekyll 3.3.1 | Error: Cannot assign requested address - bind(2) for 203.0.113.0:4000

December 26, 2016 332 views
Server Optimization Ubuntu 16.04

aditya@aditya:~/www$ jekyll serve --host=203.0.113.0
Configuration file: /home/aditya/www/config.yml
Configuration file: /home/aditya/www/
config.yml
Source: /home/aditya/www
Destination: /home/aditya/www/site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.24 seconds.
Auto-regeneration: enabled for '/home/aditya/www'
Configuration file: /home/aditya/www/
config.yml
jekyll 3.3.1 | Error: Cannot assign requested address - bind(2) for 203.0.113.0:4000

1 Answer

Hello,

Make sure you don't have anything running on your server with same port. If you have anything other running in same time on port 4000, it can't assign port.
You can use following command to check above:

  • sudo lsof -i :4000

Also look at this GitHub Issue and answer, it could be helpful.

Have another answer? Share your knowledge.