diff --git a/middleman-core/lib/middleman-core/preview_server.rb b/middleman-core/lib/middleman-core/preview_server.rb index e8728976..3191e741 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.gethostname + @host = @options[:host] || Socket.ip_address_list.find(&:ipv4_private?).ip_address @port = @options[:port] || DEFAULT_PORT mount_instance(new_app)