Local Domain Web Server
The main benefit of using this method is that it gives you the most control over your site.
Local domain web server. When a request comes in to the web server for a domain name or ip address that is not assigned to any website the first apache virtual host defaultwebsite localhost gets returned. Then save the file. When accessing the server directly via an ip address you ll only be able to access 1 website the website that has that ip assigned as a domain alias. Additionally xampp keeps your local site completely private and unavailable to other users.
Sometimes simply clicking on and viewing your html files in the web browser is enough but if you want to test dynamic content you will need to set up a local web server. When developing a website a web designer needs to be able to see his webpages the same way the end user would. Trying to open the address 127 0 0 1 in an ipv4 connection will trigger a loopback referring you back to your own web server. This situation is also known as a loopback address.
You can confirm the domain is. Open your hosts file then add. The addresses range from 127 0 0 0 to 127 255 255 255 but it s normally 127 0 0 1. In this situation you can point your website to your new server in your local system.