In computer networking localhost virtually means that “this computer”. After you group a computer address into your browser, you’re basically connecting to a “host” computer elsewhere within the world. This computer serves you the net page that you just requested. If you type “localhost” into your browser, however, then your browser can get that you just need to attach to the pc you’re presently victimization. If your computer is running net server code like Apache, then your browser is served an internet page by your computer, that is otherwise called the localhost. Each computer connected to the net has associate degree information processing address and your localhost has one too. generally, the information processing address is 127.0.0.1.
Localhost is usually used for testing and development. once a developer installs WAMP, LAMP, or MAMP code stack on their computer, then they’re going to generally type“localhost” into their browser so as to drag up their WordPress site. Native server environments will speed up the event time.
Another common usage of localhost is after you are attempting to attach to your MySQL information. sometimes this happens after you are putting WordPress on your server. However, throughout the WordPress installation, you’re asked for a hostname that is sometimes localhost. The reason for this is often that WordPress and MySQL each area unit generally put in on a constant server. So as for them to communicate with one another, they have to remember this. By telling WordPress that your MySQL information server is “localhost” you’re primarily telling WordPress to appear for the information on a constant computer.