string a = "Server=" + textBox1.Text + ";Database=" + textBox2.Text + ";User id=" + textBox3.Text + ";Password=" + textBox4.Text + ";Persist Security Info=True";
            SqlConnection sql = new SqlConnection(a);
            try
            {
                sql.Open();
                MessageBox.Show("OK");
            }
            catch (System.Exception eX)
            {
                MessageBox.Show("FALSE");
            }
输入自己的IP能连接成功,PING 别的计算机也能PING通,但是就是输入别人IP就连接不成功了;