Wifi module and remote server

Okay, how can i connect to wireless router ? seems like SurferTim's example is not connecting to router.