How to self-host website for free

Author: Peter Berry
Date Of Creation: 18 February 2021
Update Date: 1 July 2024
Anonim
How To Host Your Own Website For FREE - Home Server Tutorial [2021]
Video: How To Host Your Own Website For FREE - Home Server Tutorial [2021]

Content

This wikiHow teaches you how to create a website server on your computer. You can do this on both Windows and Mac computers using the MAMP server builder program, however, you will need to take some steps first to make sure your computer is eligible for hosting (hosting) the server.

Steps

Part 1 of 3: Preparing to host website

  1. Open File Explorer


  2. Click the document's folder in the left bar of File Explorer.
  3. Click to select document.
  4. to find MAMP.

  5. Click Preferences…. This gear icon is on the left side of the MAMP window.
    • If you receive an error message, click first OK to exit that window.
  6. Click the card Ports at the top of the Preferences window.


  7. Click the button Set to default (Set as default). This option is in the middle of the port Ports. The ports MAMP uses will be reset, the website won't be blocked by the router's default firewall.
  8. Click OK at the bottom of the page. The settings will be saved.

  9. Close and reopen MAMP. Click Quit, then click on the MAMP icon again to reopen the program.
  10. Click Start Servers on the right side of the MAMP window. The MAMP server will start up with your website source code and customize your port. The site will be back up and running; People can enter your public IP address into a search engine for access.
    • Unless you purchase a dynamic IP address service, the local IP address along with the website address will change over time.
    • You cannot use the local IP address to view the website if you are connected to your home network because the system will only open the page of the router.
    advertisement

Advice

  • Although MAMP offers the option to automatically reset the port, you can also open port 80 on your router's firewall manually.
  • Web hosting services are very cheap (some services are not up to 100,000 VND / month). These services also offer better protection than self-hosting. Therefore, web hosting is a much better choice if you have a monthly budget devoted to this.

Warning

  • When self-hosting, your website may crash if the computer loses network connection, power outage or system fails.
  • Note that if you self-host on your computer, your website will respond much slower than using traditional web hosting.