It's better to have a domain for your website so you can have a much better readable link for your friends instead of an ip address.

The method is quite straightforward: buy a domain and link it to your server.

Namecheap is one of those domain name registrars. Find an available domain and buy it. You can enjoy some discount on the first year.  WechatIMG9

After you own one domain, you need to configure the DNS settings. Choose your domain and click "Manage"


In Advanced DNS tab, you need to set a A Record for the domain. Say you have a domain: A record like Host: @, Value: will tell everyone that, each request towards will be sending to I also add one redirect record: host: www. If someone type in there browser, I want they redirected to

It may takes 30 minutes or fewer to make those settings available to world after you click apply.