You must connect onto Nintendo Wi-Fi Connection when logging onto the GTS.
Just by logging onto the GTS won't activate the GTS Glitch, you must perform the GTS Glitch, but lets not get into that here. If you want to talk about the GTS Glitch, then PM me.