Try jekyll serve --host=0.0.0.0 when invoking Jekyll on the command line.
This will make the Jekyll HTTP server tied to all available IP addresses, not just localhost .
You can also add this to your _config.yml with host: 0.0.0.0 . GitHub will simply ignore it when you click, so itβs safe to use it if you donβt mind opening your work on your network.
Without --host=0.0.0.0 Jekyll will output something like this at startup:
$ jekyll serve [...] Server address: http://127.0.0.1:4000/ Server running... press ctrl-c to stop.
But with --host=0.0.0.0 (or host: 0.0.0.0 in _config.yml ), you will notice that it listens on all interfaces (represented by 0.0.0.0 ), and not just listens on the loopback interface (represented by 127.0.0.1 )
$ jekyll serve --host=0.0.0.0 [...] Server address: http://0.0.0.0:4000/ Server running... press ctrl-c to stop.
pauljz May 17 '13 at 12:11 2013-05-17 12:11
source share