C# How to check Remote IP Address from the Local Network -
Currently, I am working on a Windows based system that uses mySQL as a database. The database can be on a remote computer connected to the same network. My problem is, how can I check whether this remote address is going to be my database source or is currently accessible.
bool CheckConnectionStatus () {string strokeconction = "/ * your connection string is / / ; SqlConnection con = New SqlConnection; If (con.state == ConnectionState.Closed) {try {con.Open ()} con.Close ();} hold (exception e) {return false;}} and { Back true;}}
Comments
Post a Comment