domain name vs ip address?

May 28, 2014 7k views
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
2 Answers
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.

When server migration / upgrade is done, changing the dns record is much easier than patching the program or config file(s).
Have another answer? Share your knowledge.

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