Ranger, who was out with his cousin, was approached by a group of white males at about 2am and a confrontation ensued which resulted in Ranger punching two of them.
But Newcastle Crown Court heard that the footballer had been the victim of racial taunts and that his actions were in self-defence.
He fled the scene but, when police tried to detain him, he twice pushed them away, causing minor injuries.
He was given a 12-month conditional discharge and told to pay £750 to each officer.
More from Home
- Police Appeal For Information On Missing Newcastle University Student Jason Fyles
- Missing Student Jason Fyles: Family Appeal For Teenager To Get In Touch
- Have Your Say: Newcastle United Fans' Survey 2013
- Have Your Say: Sunderland AFC Fans' Survey 2013
- Sports Direct Sign On Newcastle's St James' Park Roof Painted Over
- The Extreme Job Hunter: Video Stunts Set Dad's Online CV Apart
- 'Psycho Drama Queen': Phil Bardsley's Girlfriend's Twitter Attack On SAFC Boss Di Canio
- Man Arrested After Rooftop Protest In Sunderland