One way is to modify your /etc/hosts file. It has (should have) the line
which you can change to
127.0.0.1 localhost www.mysite.com
After saving, if your server is running, type the address and it should go there (works here).
Just remember that because it's configured locally, your friends won't be able to do that. If you want it to be global, buy a domain name for your server.
Edit: to be clear, after that change www.mysite.com ought to point to your www root directory, which is accessed at http://localhost.