Ok so I am trying to connect to my database from my web host but the support people keep saying use "localhost" well in my C# program if I use "localhost" it connects to the mysql database on my local machine. 

I was just wanting to know if there was something I could put under the "Server" parameter when connect to my database from my program to make it connect to my server and use "localhost" while under my server? Would I have to do something with DNS? and if so what do I add? It says "Name" and "Address" under my DNS record editor for my webhost.

This is my code 
**Requested by: JMK** (password and uid censored out)

```
string connString = "Server=localhost.mydomain.com;Database=***;Uid=bender;password=***";
           MySqlConnection conn = new MySqlConnection(connString);
           MySqlCommand command = conn.CreateCommand();
            command.CommandText = "SELECT * FROM users";
            try
           {
                conn.Open();
            }
            catch(Exception ex)
            {
               MessageBox.Show(ex.Message);
           }
          MySqlDataReader reader = command.ExecuteReader();
            while (reader.Read())
            {
                listView1.Items.Add(reader["username"].ToString());
            }

```

this is my code. I've tried "localhost.mydomain.com" but it just redirects it to my localhost machine. How would I obtain my domain's ip?