Problem with remote desktop debugging

Right, in that case, if it’s working initially and then failing later, there was an issue in the IDE which limited the number of connections that could be made. Try quitting the debugger on the pi and restarting it.