Line 27?
He probably got it wrong because you haven't actually posted any code so it was just a guess.
because everything else should work?
What is everything else?
You need to describe what you have done, there is a lot to do to get communications going and it could go wrong at any stage.