Hi,
> sqlConBui.DataSource = @"126.158.2.125,50121\STUDENTMSSQLSERVER";
Please try "126.158.2.125,50121"
>network-related or instance-specific error occurred while establishing...
This error usually means that the client can't find the SQL Server instance.
If you cannot connect SQL Server through your application, please confirm whether the network and port is work fine, and try to use SSMS to remotely connect to the SQL Server instance for testing to explore where the problem may be.
https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/troubleshoot-connecting-to-the-sql-server-database-engine?view=sql-server-ver15