Minecraft - Internal Exception: java.io.IOException: Connection reset by peer?

So recently, I've been playing on my friend's server. I've only been on the server for a few days and was doing a few days of Trial-Mod for the staff, but lately, whenever I try to connect to the server it displays this message after a very long "Logging in" screen: "Internal Exception: java.io.IOException: Connection reset by peer" I refreshed a few times, and managed to get in, but today, no matter how much I refresh or exit and change my Minecraft profiles from the launcher, it still displays the same message, no matter how many times I try to get in! Anyone got any answer for why this is happening? Is it something to do with my computer? I use a mac, also if that changes anything, but if if you want to test if it's just me, the IP is 5.9.196.37:25719.

Here you may get some help
http://bestwebpost.weebly.com