Here's the rule
2.7 (a) When the ball is played over the endline by
the Team attacking that end, or after a score
is made, play is restarted by a kick-out off the
ground from the 13m line and within the large
If the goalkeeper is not taking the kick-out, he
shall stay in the small rectangle, and all other
players, except the player taking the kick-out,
shall be outside the 20m line and 13m from
the ball, until it has been kicked.
The player taking a kick-out may kick the
ball more than once before any other player
touches it but may not take the ball into his
The ball shall travel 13m before being played
by another player of the defending team.
So therefore you could technically kick the ball 13 metres sideways (which is what our goalie did in that game) and as long as the defender was outside the 20 metre line at the time the ball was kicked, he could run in and get it.