Connection Timeout Minecraft?

So I have a macbook pro with OS. Mavericks 4GB. I usually don't game, but when I do I play minecraft! I usually can get on a server, but recently during the game I would be kicked out and would display a message, "Connection Timeout." I attempted to allocate more ram, reduce my render and other things that reduce the lag, but I still get the message. Another PC of mine doesn't have this problem. Any suggestions? Also please don't post just to talk bad about Mac! I need some suggestions.

I use PC for gaming mostly but I do game lightly on my MacBook Pro (Same as yours) when i'm traveling or when i'm at school and i have a break. To fix your problem just simply disable your firewall, that should fix it. But if it doesn't then try reinstalling Minecraft.