Still wondering on hostname

I have been looking through the many articles already posted on this and I still can’t quite understand it. I’ve setup things like MariaDB and another service and they both have pasted links that are weirdly typed and later I found out they used the hostname I have setup for my droplet which is (mydomain)Main. That’s how it’s setup.

So like when I connect remotely to MariaDB it will say weird things like http://(thathostname):3306 and I just went in manually to enter the IP address into BeaverDB. As well as the web service I have setup to help with monitoring and logging, it told me to connect to (hostname):(port) but they are not my domain and if I typed that in, it would of course give me an error because it’s not a TLD.

So what exactly should I use as my hostname? It’s a single domain droplet/site and no plans to ever have another domain lol.

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.

Hi there,

If you’ve installed MariaDB on a Droplet, you can use the Droplet’s IP address as the hostname.

For connecting to MariaDB, I could suggest the following tutorial:




You can use your server’s IP address as your hostname.

Keep in mind that connecting to MySQL remotely, requires some additional changes to the MySQL configuration which you can follow here:

Are there any other tools that you are using that require you to specify a hostname?