This question already has an answer here:
This just started happening today:
I have minecraft installed on Ubuntu 14.04 LTS. For some reason multiplayer doesn't work for me: I get a good ping for the server but every time I attempt to join, for the first few moments everything works and chat is working but then, all the players freeze, chat doesn't work, portals don't work, and when I type something in chat, it doesn't show up. After 5 more seconds, I get kicked from the server and it says "Connection lost Timed Out".
I've tried joining many servers (hypixel, mineplex, etc.) but none of them work (the same thing happens to all of them). I've tried restarting my computer 2 times, disconnecting and reconnecting my wifi, and I re-installed minecraft.
What can I do to fix this?