Can't connect to server

it was fine before
but suddenly it became
java.net.ConnectException: Connection timed out: no further information
the server didn’t change any setting
help