Hello ashleylleo!
Have you checked if you are also playing on the same level?¿ If you have selected a different level than the other player, even if you put the codes correctly, the game won't connect properly. Also keep in mind that maps are swapped! (just in case) So you have your partner's map and viceversa.
When it asks if the coordinates are correct, these values have to match, if they do then the connection should work.