A method for connecting a wireless device to a wireless network, said method comprising the steps of: listening for a trigger code when the wireless device is powered on and in an unconnected state with respect to a wireless router; causing by a user device through an application executed on the user device the wireless router to send the trigger code; receiving the trigger code sent by the wireless router with the wireless device; upon receiving the trigger code, transmitting recognition information from the wireless device to the user device, wherein the user device is adapted to communicate on two channels on a time division multiplexed basis thereby providing simultaneous connection to the wireless router and the wireless device; thereafter, creating a pair-wise key between the user device and the wireless device from the recognition information; thereafter, handshaking on the pair-wise key between the wireless device and the user device thereby establishing a communication channel; thereafter, sending wireless router access information (428, 430), preferably a payload comprising a service set identification (SSID) and a password, from the user device to the wireless device; thereafter, receiving the wireless router access information (428, 430) with the wireless device; thereafter, changing an operation mode of the wireless device to operate as a client station, and thereafter, establishing a direct wireless connection between the wireless device and the wireless router by sending the wireless router access information (428, 430) from the wireless device to the wireless router to join the wireless network as a client. listening for a trigger code when the wireless device is powered on and in an unconnected state with respect to a wireless router; causing by a user device through an application executed on the user device the wireless router to send the trigger code; receiving the trigger code sent by the wireless router with the wireless device; upon receiving the trigger code, transmitting recognition information from the wireless device to the user device, wherein the user device is adapted to communicate on two channels on a time division multiplexed basis thereby providing simultaneous connection to the wireless router and the wireless device; thereafter, creating a pair-wise key between the user device and the wireless device from the recognition information; thereafter, handshaking on the pair-wise key between the wireless device and the user device thereby establishing a communication channel; thereafter, sending wireless router access information (428, 430), preferably a payload comprising a service set identification (SSID) and a password, from the user device to the wireless device; thereafter, receiving the wireless router access information (428, 430) with the wireless device; thereafter, changing an operation mode of the wireless device to operate as a client station, and thereafter, establishing a direct wireless connection between the wireless device and the wireless router by sending the wireless router access information (428, 430) from the wireless device to the wireless router to join the wireless network as a client. transmitting recognition information from the wireless device to the user device, wherein the user device is adapted to communicate on two channels on a time division multiplexed basis thereby providing simultaneous connection to the wireless router and the wireless device; thereafter, creating a pair-wise key between the user device and the wireless device from the recognition information; thereafter, handshaking on the pair-wise key between the wireless device and the user device thereby establishing a communication channel; thereafter, sending wireless router access information (428, 430), preferably a payload comprising a service set identification (SSID) and a password, from the user device to the wireless device; thereafter, receiving the wireless router access information (428, 430) with the wireless device; thereafter, changing an operation mode of the wireless device to operate as a client station, and thereafter, establishing a direct wireless connection between the wireless device and the wireless router by sending the wireless router access information (428, 430) from the wireless device to the wireless router to join the wireless network as a client.