In computer networking, localhost refers to ‘this computer’ that a program is running on. When you type a URL on your browser to visit a website, you are actually connecting to a ‘host’ computer that contains all files and data of that particular website.