A method for using a configuration device to configure a network device, the method being performed by the configuration device and comprising: initiating pairing operations with the network device of a communication network via a short-range communication connection with the network device; determining whether the network device is in a registered state or an unregistered state; if determined that the network device is in the unregistered state, establishing a short-range communication channel between the configuration device and the network device; and transmitting a network key to the network device via the short-range communication channel for configuring the network device to communicatively connect to the communication network; if determined that the network device is in the registered state, determining whether to unregister the network device, wherein said determining comprises determining whether the network device is registered with the configuration device or with a different configuration device; and in response to determining the network device is registered with the configuration device and determining to unregister the network device, transmitting at least one message to the network device to unregister the network device over the short-range communication channel. initiating pairing operations with the network device of a communication network via a short-range communication connection with the network device; determining whether the network device is in a registered state or an unregistered state; if determined that the network device is in the unregistered state, establishing a short-range communication channel between the configuration device and the network device; and transmitting a network key to the network device via the short-range communication channel for configuring the network device to communicatively connect to the communication network; establishing a short-range communication channel between the configuration device and the network device; and transmitting a network key to the network device via the short-range communication channel for configuring the network device to communicatively connect to the communication network; if determined that the network device is in the registered state, determining whether to unregister the network device, wherein said determining comprises determining whether the network device is registered with the configuration device or with a different configuration device; and in response to determining the network device is registered with the configuration device and determining to unregister the network device, transmitting at least one message to the network device to unregister the network device over the short-range communication channel. determining whether to unregister the network device, wherein said determining comprises determining whether the network device is registered with the configuration device or with a different configuration device; and in response to determining the network device is registered with the configuration device and determining to unregister the network device, transmitting at least one message to the network device to unregister the network device over the short-range communication channel.