This is fairly complicated stuff. First, you're talking about several different things. Are you looking to get to your web site from the maching running XAMPP? Or from another machine on your local network? Or from the internet? Do you want a regular internet domain name, or just a name you can use from your own network? All these things are different.