diff --git a/middleman-core/lib/middleman-core/cli/server.rb b/middleman-core/lib/middleman-core/cli/server.rb index 73bd7c13..782d9faf 100644 --- a/middleman-core/lib/middleman-core/cli/server.rb +++ b/middleman-core/lib/middleman-core/cli/server.rb @@ -15,7 +15,7 @@ module Middleman::Cli method_option :host, :type => :string, :aliases => '-h', - :default => Socket.ip_address_list.find(&:ipv4_private?).ip_address, + :default => '0.0.0.0', :desc => 'Bind to HOST address' method_option :port, :aliases => '-p', diff --git a/middleman-core/lib/middleman-core/preview_server.rb b/middleman-core/lib/middleman-core/preview_server.rb index 3191e741..efb72bae 100644 --- a/middleman-core/lib/middleman-core/preview_server.rb +++ b/middleman-core/lib/middleman-core/preview_server.rb @@ -15,7 +15,7 @@ module Middleman # @return [void] def start(opts={}) @options = opts - @host = @options[:host] || Socket.ip_address_list.find(&:ipv4_private?).ip_address + @host = @options[:host] || '0.0.0.0' @port = @options[:port] || DEFAULT_PORT mount_instance(new_app)