skip to Main Content

I created a website using wordpress and it is hosted locally using xampp .But how can I host it publicly?
without buying a domain can I test it any free server?

Thanks for your help, and sorry if my question is confusing .

I have no idea what steps to take now

2

Answers


  1. We can use free hosting provider services to host your WordPress site publicly. Some popular free hosting services include InfinityFree, 000WebHost, and AwardSpace.

    I believe it should help.

    Login or Signup to reply.
  2. Hosting a website publicly using XAMPP involves several steps, including setting up XAMPP, configuring your router for port forwarding, and ensuring your computer’s firewall allows access. Here’s a detailed guide:

    1. Install XAMPP

    • Download and install XAMPP from the official website.
    • Open XAMPP Control Panel and start the Apache and MySQL modules.

    2. Place Your Website Files

    • Place your website files in the htdocs directory within the XAMPP installation folder (e.g., C:xampphtdocs).

    3. Test Locally

    • Open your web browser and type http://localhost or http://127.0.0.1 to ensure your website is working locally.

    4. Configure Your Router for Port Forwarding

    To make your site accessible from the internet, you’ll need to set up port forwarding on your router:

    • Access Router Settings:

      • Open a web browser and enter your router’s IP address (commonly 192.168.1.1 or 192.168.0.1).
      • Log in with your router’s admin credentials.
    • Set Up Port Forwarding:

      • Locate the port forwarding section (may be under "Advanced", "NAT", or "Virtual Server").
      • Forward port 80 (HTTP) and port 443 (HTTPS) to the local IP address of your computer running XAMPP. You can find your local IP by running ipconfig in Command Prompt and looking for the "IPv4 Address".

    5. Adjust Firewall Settings

    • Ensure that your firewall allows incoming connections on port 80 and 443:
      • Go to Control Panel > System and Security > Windows Defender Firewall > Advanced settings.
      • Create new inbound rules for TCP ports 80 and 443.

    6. Obtain a Static IP Address or Dynamic DNS

    • Static IP: If your ISP provides a static IP address, use it. Otherwise, your public IP may change.
    • Dynamic DNS: If you have a dynamic IP, use a Dynamic DNS service (like No-IP or DynDNS) to get a domain name that updates with your changing IP address.

    7. Access Your Website

    • To access your website publicly, enter your public IP address or Dynamic DNS domain name in a web browser.
    • For example, if your public IP is 123.123.123.123, you can access your website by typing http://123.123.123.123.

    8. Security Considerations

    • Password Protect: Protect sensitive areas of your site with passwords.
    • SSL Certificate: Consider setting up an SSL certificate to encrypt data (Let’s Encrypt offers free certificates).
    • Keep Software Updated: Ensure XAMPP and any website software (like WordPress) are up to date to avoid vulnerabilities.

    Summary

    1. Install and configure XAMPP.
    2. Place your website files in the htdocs directory.
    3. Test the site locally.
    4. Set up port forwarding on your router for ports 80 and 443.
    5. Adjust your firewall to allow traffic on these ports.
    6. Obtain a static IP or use a Dynamic DNS service.
    7. Access your website using your public IP or Dynamic DNS domain.
    8. Implement security measures to protect your site.

    Following these steps should help you host your website publicly using XAMPP. Let me know if you need further details on any specific step!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search