Relevant discussion may be found on the talk page
Already explained on other pages
Localhost refers to the computer or device that you're working on. localhost is used in Windows, Mac OSX, GNU/Linux and BSD to define this.
The IPv4 address 127.0.0.1 and IPv6 address ::1 always refer to localhost.