Question

domain name vs ip address?

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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).

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