User1 runs startx on tty1, and then user2 runs startx on tty2. On tty1, the graphical environment is Awesome Window Manager (X11), and on tty2 it is Cinnamon desktop (X11). For graphical applications such as Nextcloud, Firefox, etc., on tty1, the network connectivity cuts off when user2 is on tty2. However, non-graphical/terminal applications on tty1 keep their network connection while user2 is on tty2. Therefore, video or audio can be streamed fine from the terminal on tty1 while user2 is on tty2. However, it is not possible to stream video or audio from Firefox or from any graphical application on tty1 while the other user is on tty2. How can I maintain network connectivity for graphical applications on tty1 while user2 is on tty2?
I am using Debian Bullseye with Network Manager, but I could also just use the /etc/network/interfaces file.
Also, this used to work for me on a previous version of Debian. I believe it was Debian 9.