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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -