Server kicks players when I leave

I host a server from my local machine, the server is running Paper 1.14.4. The server runs without any lag and is very smooth and should have more than enough RAM for a vanilla server with around 5 people. For whatever reason, when I leave the server and leave the server running, players are kicked usually within 20 seconds. This didn’t use to happen however I know it isn’t a paper specific problem as the same server did the same thing when I used regular Spigot. I’ve tried disabling firewall and anti-virus, and everything is port-forwarded correctly. Whenever I want to open the server I have to be logged in for players to join, otherwise, their client tells them “Connecting to server”, until I join from my game. If anyone could help out that would be great. Unfortunately, I don’t currently have any logs of when this happens.