Curl Error Code 18 After QUEUE

Hello, I hosted a localhost server for days, opened it to my friends so we could test stuff together, however since Today I can’t join my own server whilst everyone can. I know its not the servers fault as others connect, and I also hosted it on a VPS, and to my surprise, my friends were still able to connect where as I would get stuck in the Queue, and then it would throw a Curl Error Code 18, I have all my ports forwarded and the server is 100% functional, what am I missing that isn’t letting me connect to my own server even if it is localhost? Thanks in advance