I think this should be posted under gaming forum, as the game seems to cause the problem.
But anyway, I need more information.
What game is it ?
Does it ONLY happen during the game?
How do you connect online?
Does the computer just shut-down OR does it reset without a proper shut down?
Is windows firewall enabled?
PS there is allways an error code somewhere.