Hi!
DS Connection doesn't "work" anymore, however, to get mystery gift events for these Pokemon games, you'll have to set your internet connection Primary DNS settings to 164.132.44.106 while leaving the secondary blank.
Save it without testing the connection and you should be able to get...