I don't understand how domain name and URL redirect works

view story

http://serverfault.com – I bought a domaine name and made a website for my personal website. The website is currently a custom Mongoose embedded server that loads HTML pages and shoots them when specific URLS are asked. My website works perfectly on my localhost on my port 8080. No problem there. The problem is with my domain name. I bought a domain name from 1and1 because the first year was almost free and I like saving money. I went to the settings of my account. I clicked on my domain and did a URL redirect to my internet ip address. It works but the problem is that in the browser, you go from this : www.georgefo (HowTos)