On some systems, localhost doesn't work for IPv6, thus use ::1.