A first network device comprising: a first network interface; a second wireless network interface; an activation means configured to activate a mesh mode for participating in a mesh network identified by identification information, by using the second wireless network interface; characterized in that the first network device further comprises: a receiving means configured to receive, from a second network device via the mesh network by using the second wireless network interface, data to be applied to the first network device, wherein the received data includes a setting value for connecting to an existing network that exists in an environment in which the first network device is arranged, and wherein the existing network is different from the mesh network; an application means configured to execute application of the received data including the setting value, wherein application of the received data allows the first network device to connect to the existing network via the first network interface; and a transmission means configured to transmit a result of the application of the received data to the second network device via the existing network to which the first network device connects using the first network interface based on the setting value. a first network interface; a second wireless network interface; an activation means configured to activate a mesh mode for participating in a mesh network identified by identification information, by using the second wireless network interface; characterized in that the first network device further comprises: a receiving means configured to receive, from a second network device via the mesh network by using the second wireless network interface, data to be applied to the first network device, wherein the received data includes a setting value for connecting to an existing network that exists in an environment in which the first network device is arranged, and wherein the existing network is different from the mesh network; an application means configured to execute application of the received data including the setting value, wherein application of the received data allows the first network device to connect to the existing network via the first network interface; and a transmission means configured to transmit a result of the application of the received data to the second network device via the existing network to which the first network device connects using the first network interface based on the setting value. a receiving means configured to receive, from a second network device via the mesh network by using the second wireless network interface, data to be applied to the first network device, wherein the received data includes a setting value for connecting to an existing network that exists in an environment in which the first network device is arranged, and wherein the existing network is different from the mesh network; an application means configured to execute application of the received data including the setting value, wherein application of the received data allows the first network device to connect to the existing network via the first network interface; and a transmission means configured to transmit a result of the application of the received data to the second network device via the existing network to which the first network device connects using the first network interface based on the setting value. an application means configured to execute application of the received data including the setting value, wherein application of the received data allows the first network device to connect to the existing network via the first network interface; and a transmission means configured to transmit a result of the application of the received data to the second network device via the existing network to which the first network device connects using the first network interface based on the setting value.