Local Hosting Website
— Computer with an Operating System
— Local Area Network
To host your website locally, make sure your machine is connected to a Local Area Network.
Use “ipconfig” command in Command Prompt to find out the IP assigned to your machine (IPv4 Address).
If this doesn’t seem easy, use the other way.
Go to Control Panel > Network and Internet > Network and Sharing Center.
“View your active networks” will list your network connections.
In your “Network”, Click Network ID in Connections.
In General tab > Click Details > You can find your IP in IPv4 Address row.
Copy your IP address and use it to access the website that’s being hosted.
To install Apache, I’d recommend using WAMP or XAMPP. It’s a GUI based installer. Easy to install and configure.
Once installed, open XAMPP or WAMP dashboard and Start Apache Module. Now a sample website is hosted in your machine. You can check it by visiting “localhost” in your browsers.
Now, you need to allow Apache in your Firewall so that anyone can access the website in the Local Area Network
In Control Panel > Windows Firewall > Allow an app or feature (available in the left bar), Click Change Settings.
Make sure Apache HTTP Server is checked (Allowed). That’s it.
Now you can check accessing your website from any machine in the Local Area Network using the IP Address.
If you have a static IP address, you could follow the same procedure to host the website globally.
We would be creating posts about installing and configuring XAMPP and WAMP.
To create websites, we have created a WordPress series for beginners. Feel free to have a look at it. WordPress Series.
You could also subscribe to our YouTube Channel to stay informed about the updates.