Hey, so I'm hosting a java server for me and a few friends using nordVPN meshnet. Our server's been working fine for the last month and a half and I've been able to connect with no worries using localhost in the direct connection tab. But yesterday I had to restart my computer for other reasons and when the server started up again I was unable to join with localhost? All I get now is "Failed to connect to the server, Connection refused" with no reason given. My friends are still able to get on and play as usual. I'm playing on the same device as is hosting, a 2022 macbook air (I know this isn't ideal, but it has been working fine for a while now so that is not the problem here). I've tried restarting my computer and the server again a few times, to no avail. Have also flushed my DNS cache, tried deop on my self then op again, basically everything I could think of.
I'm playing on Optifine 1.21.4 (again, this is what I was playing on before so that is not the issue), the only thing I changed was when I first rebooted the server I edited the server.properties file to set the game mode to normal (we had been on hard for totem farming) and decided to reduce the max number of players from 10 to 5 as there is ever only 4 of us playing. I did revert these changes after struggling to join the server though.
Any fixes? Thanks
SOLVED: I flushed my DNS cache and logged out and logged back in again and somehow I think that's worked. Oh well.
Hey, so I'm hosting a java server for me and a few friends using nordVPN meshnet. Our server's been working fine for the last month and a half and I've been able to connect with no worries using localhost in the direct connection tab. But yesterday I had to restart my computer for other reasons and when the server started up again I was unable to join with localhost? All I get now is "Failed to connect to the server, Connection refused" with no reason given. My friends are still able to get on and play as usual. I'm playing on the same device as is hosting, a 2022 macbook air (I know this isn't ideal, but it has been working fine for a while now so that is not the problem here). I've tried restarting my computer and the server again a few times, to no avail. Have also flushed my DNS cache, tried deop on my self then op again, basically everything I could think of.
I'm playing on Optifine 1.21.4 (again, this is what I was playing on before so that is not the issue), the only thing I changed was when I first rebooted the server I edited the server.properties file to set the game mode to normal (we had been on hard for totem farming) and decided to reduce the max number of players from 10 to 5 as there is ever only 4 of us playing. I did revert these changes after struggling to join the server though.
Any fixes? Thanks
SOLVED: I flushed my DNS cache and logged out and logged back in again and somehow I think that's worked. Oh well.