Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
Hi andersennarvy, sorry, you're in the wrong forum. ^^; New Users / Welcome is for introductions, not D/P questions, so I'll go ahead and move it over to Diamond & Pearl.
Have you set up your Wi-Fi yet? Once you do this, you must configure your connection to the DS in the options that appear before the game starts. Choose the NINTENDO WFC SETTINGS. Follow the setup from there.
First thing you will need is a router. Then try and connect onto wi-fi this way. If you can't, look up the Wi-fi related help in the Computer/Tech discussion. Once you do, you will find your friend code there.