Alright.
If the connection with you DS to your router is working fine, than you are good to go.
As for your friend code, you'll have to use your Pal Pad (In your Item bag, where all the important items like your bike and the Fishing rods are stored) Its in there :O.