If you are recieving http error response 502 error: It's ok, there is nothing wrong with the server or your client. This is not a issue with the server, it is an issue with the minecraft.net authentication server. This is being worked on, please be patient. A link to the relevant thread -VD