Why my game or streaming exit if I end my server RDP session? - A Solution from DBM
Hello everyone! Today, we at DBM want to share a common problem many of us might have encountered and its solution.
The issue is that when we end our Remote Desktop Protocol (RDP) session to a server, our games or certain programs would unexpectedly exit and stop working. This can be extremely frustrating, whether you're in the middle of an intense gaming session or running a crucial program for work.
The reason behind this behavior is that closing the RDP window terminates the current session. As a result, any programs running within that session are disrupted and may pause or stop entirely.
But fear not! We have a workaround. We can utilize a script to transfer the RDP session to a local session. This enables the game or program to keep running even after the RDP session has ended.
Here's how to use the script:
- First, create a text document on the server. Paste the following lines into it and save:
@ %windir%\System32\tscon.exe 0 /dest:console
@ %windir%\System32\tscon.exe 1 /dest:console
@ %windir%\System32\tscon.exe 2 /dest:console
- Change the extension of this text document to .bat.
- When it's time to exit the RDP window, run this .bat script as an administrator.
It should be noted that some programs might still stop even after using this script. In such cases, we can use Anydesk to connect to the server and start the program we need. If we want to access the server again in the future, we can do so directly through Anydesk.
Installation, configuration, and usage of Anydesk:
1. In the server, access the Anydesk website at
https://anydesk.com/ and click "download now".
2. Open the downloaded Anydesk and set a login password for it. In the screenshot, "Your address" is the connection address of the current server, which needs to be recorded.
3. Install Anydesk on your local computer as well. Enter the address of the server you want to connect to and input the previously set password.
In conclusion, if you've been facing the problem of your game or programs exiting when you end your server RDP session, give this script a try. Stay tuned for more useful tips and tricks from DBM.