I can connect to any server except my own

and my own server is up, there’s players on it and I can see in the console that everything’s working.
I randomly got “Auto-disconnect in …” and since then I get “connection failed after 4 attempts”.

You may need to unblock the ports in your router

I don’t host it at my home computer, and it has been working fine for months, I just now randomly got disconnected and can’t connect again.

Did this just occur now? Because there seems to be problems with gmod atm, random disconnects and so.

Yes, it works now.