Question

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

Posted December 26, 2016 1.6k views
Server OptimizationUbuntu 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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.

Submit an Answer