Have high ping in-game but have good internet speed and low ping when I do a speedtest

So in-game I have huge pings of 200+ but when I go to http://www.speedtest.net/ it shows I have around 30 ping and a good internet speed. So why am I getting huge pings in-game and how do I solve this problem?
Report as:
Offensive Spam Harassment Incorrect Board