Publish Web Server in Windows

Estimated reading: 3 minutes 102 views

1. Install XAMPP and start services

  • Install a Web Server Stack
    Download and install a web server bundle like XAMPP or WampServer. These packages include Apache (web server), PHP (scripting language), and MySQL (database).

  • Start the Server Services
    Launch the XAMPP/WAMP control panel and start the Apache and MySQL services.

  • Place Your Website Files

    • Navigate to the htdocs folder (for XAMPP) or www folder (for WAMP).

    • Copy your website files (e.g., index.html, index.php) into this folder.

  • Access Your Website Locally
    Open a browser and go to:

    http://localhost

2. Modify Port Selection

  • Select the TCP/UDP Port menu.
  • In the TCP/UDP Port  list, click Action then click View.
  • Select the Port Selection tab, then click the pencil icon to adjust the port.
  • Set the local port to match the local port on the PC/server device. In this case, the web server uses port 80 by default. Then click Save.

3. Connect VPN Account

Via Windows Wireguard

  • Install wireguard windows
    Install Windows Wireguard Guide
  • After that, click the Windows WireGuard tab..

  • Copy name and wireguard script / configuration to wireguard application.

  • Open wireguard application, click Add Tunnel then click Add empty tunnel
  • Paste name and config here then click Save.
  • Click Activate to connect to the vpn
  • VPN is successfully connected if the latest handshake is present

Via Windows VPN

  • In the Overview tab, locate the VPN Public IPusername and password that you’ll need to enter.

  • Search Windows Settings.
  • Select Network & Internet then select VPN.
  • Click Add VPN.
  • Enter the Connection Name and Public IP, select VPN Type: Automatic, then input the Username and Password, and click Save.

  • Then click the downward arrow, and select Advanced Options.

  • Click More VPN Setting
  • Next, select Internet Protocol Version 4 (TCP/IPv4), click Properties, then click Advanced. Uncheck the box for Use default gateway on remote network, and click OK.

  • Return to the VPN menu, then click Connect.

  • VPN connected successfully.

4. Allow Firewall Port

  • Press Windows + R, type wf.msc, and press Enter or manually find Windows Defender Firewall with Advanced Security.
  • In the left pane, click Inbound Rules. Click right pane, click New Rule…
  • In the New Inbound Rule Wizard:
    • Select Port, then click Next.

    • Choose TCP, then select Specific local ports and clik Next

    • Select Allow the connection, then click Next.

    • Check all the profiles (Domain, Private, Public) or select based on your network type, then click Next.

    • Give your rule a name, for example:
      Allow HTTP and HTTPS then Click Finish.

5. Access Web Server using Public IP and Port

  • Find Port Access in Overview Tab (example Port Access is cetus.s-net.id:7984) click copy icon to Port Access
  • Open browser then paste Port Access to open web.

Leave a Comment

Share this Doc

Publish Web Server in Windows

Or copy link

CONTENTS