Hey! Since restart and remote control still work, your network connection is definitely fine—the issue is almost certainly with the login credentials or a recent Windows update blocking the remote login service.
Here are three quick things to check first:
Saved Credentials: Make sure the username and password saved in the teacher console for that room haven't expired or been changed recently on the server.
Windows Updates: A recent Windows update might have reset a security policy or broken the background login agent on the student PCs. Try reinstalling or repairing the client software on just one student machine to see if it fixes it.
Domain Prefix: If you are on a school network, check if you need to add the domain name before the username in the login prompt (for example, SCHOOL\username instead of just username).
Which classroom management software are you using (like Veyon, LanSchool, or NetSupport)? Knowing that will make it much easier to pinpoint the exact setting!