Report this

What is the reason for this report?

domain name vs ip address?

Posted on May 28, 2014

i get that a domain name is important for websites cause they are more simple to remember for humans. But for something like a game where no human need ever read it, accept the developer. Who only has to assign it to a variable once, and then can forget about it for the rest of the program. In that situation is it better to use a domain name, ip address, or is there essentially no difference between the two?

Mainly I just want to know should I bother to set up a domain name or just connect with ip address. What are the advantages/disadvantages to each method



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Domain names can be changed, IPs can’t. Use a domain.

For development, it is better to use a domain name instead of a hard coded IP address. <br> <br>When server migration / upgrade is done, changing the dns record is much easier than patching the program or config file(s).

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.