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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -