From my reading of "SainSmart WiFi shield.pdf" it looks like the shield only provides a Telnet server at the Arduino. You connect to the server using a Telnet client (like Putty) and you can then send and receive serial data.
If that is true, your Arduino can't make outgoing connections. It can only receive and send serial data.