Question about Redirecting and domain name / ip-address

I've been trying to set up my websites on my home pc and I have xampp test server running. I have domains registered through a shared hosting service and I'm gonna point the domains to my home pc to use it. I have everything set up, but the one issue I'm having is that the address bar and all site links show the ip address of my computer instead of the domain. In the elgg administrations settings I have the url set as http://ip-address/elgg-folder/So I understand why all the links on my site will show the ip-address in the url's. But what I would like to do is set it up where my domain shows instead of the ip-address. So my question is this... I found the "Login token mismatch error" page in the elgg wiki where it talks about editing the .htacess file in elgg and redirecting and logging in with www.mydomain.com in the url as oppossed to just mydomain.com and setting 

RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^example\.com RewriteRule (.*) http://example.com/$1 [R=301,L]

My question is, can I add something to this so that I can use my domain in the root of my site url's instead of the IP address? I'm not a coder or anything, so please excuse me if I'm not explaining correctly what my issue is. Any help you guys can give me is greatly appreciated.