The connection string should look like this:
jdbc:jtds:sqlserver://192.168.0.251;DatabaseName=TEST3;instance=SQLEXPRESS
As a general rule, you don't want to include the port number.
Make sure the SQL server browser service is running.
I have a sample "test" connection app here:
https://www.b4x.com/android/forum/t...ms-sql-server-2016-in-b4a.114798/#post-717800
(it lets you type in server (as IP address), the sql instance, and then user + password. Then you just hit test connection.)
I think in most cases, often the issue is no sql server browser running, and that you attempt to include the port number.
(the browser service for SQL handles the actual IP address and port assigned to the running instance of SQL server)
Regards,
Albert D. Kallal
Edmonton, Alberta, Canada