Here are the steps to setup a very simple website using xampp and a Namecheap domain.

  1. Obtain your external IP address
Take note of the external IP address

Take note of the external IP address

  1. Configure URL forwarding
    • Go to the URL forwarding section in Namecheap domain configuration.
    • Now set the values for the IP Address/URL and Record type as follows -
A (Address) - Your IP
URL Frame - http://<your_ip>:8080/mysite
URL Forwarding section in Namecheap domain configuration

URL Forwarding section in Namecheap domain configuration

  1. Obtain your internal IP address
    • Open the command prompt window and type ipconfig and hit enter
Identify your network adapter and take note of IPv4 Address

Identify your network adapter and take note of IPv4 Address

  1. Configure port forwarding
    • Log into the router configuration by going to this address in the browser - http://192.168.0.1/ (This might be router specific)
    • Go to the Port Forwarding section, and add an entry to forward HTTP traffic for port 8080
Router port forwarding configuration

Router port forwarding configuration

  1. Configure Apache to serve on port 8080
    • Open the Xampp control panel, and click on Configure and then on Apache (httpd.conf)
XAMPP Control Panel

XAMPP Control Panel

  1. This should open the config file in notepad. Change the line Listen 80 line to Listen 8080
Apache httpd.conf

Apache httpd.conf

XAMPP Control Panel after listen port change

XAMPP Control Panel after listen port change

  1. Create your website directory
    • Create a folder called mysites in the server directory. The path will be as follows -
      D:\Program Files (x86)\xampp\htdocs\mysite
mysites folder in htdocs

mysites folder in htdocs

  1. Access your website via following URL in the browser -
    http://localhost:8080/mysite/
Website access on the local server. This should display the index.html in the browser

Website access on the local server. This should display the index.html in the browser

Now access your Namecheap domain. For me, its www.patchrowcester.com. This should serve the index.html page in the server directory.

This post is published on Tuesday, May 12, 2026, 5:51 AM CDT