Im getting this message while trying to connect to a certain server, I can still join other servers.
turning firewall off
Adding minecraft to firewall exceptions
adding the tcp and udp ports
turning the internet off and then on again
tried the systems32 host thing but couldnt find minecraft in the hosts file
What server are you trying to connect? If you are able to connect to any other server, it is not an issue on your side. Make sure the server is up and is port forwarded correctly.