Ensure that your client is unmodified.
If you're receiving the error message "Unable to connect," then you most likely are just using an incorrect password when attempting to access the gameserver with your account.
You can retrieve your password here:
https://en.nostalrius.org/passwordIf that is not your issue, then changing the IP your realmlist is connecting you to from "Login.nostalrius.org" to "Login2.nostalrius.org" might help.
† Nain now rests in the arms of our lord. He died a sickly infant at the age of 3 months and 24 days. †