1. An image forming apparatus comprising at least one processor and a memory configured to function as: a changing unit configured to change a network setting; a determination unit configured to determine whether or not an application supports a dynamic update for reflecting the change of the network setting without rebooting the image forming apparatus; and a controlling unit configured not to reboot the image forming apparatus associated with the change of the network setting if the determination unit determines that the application supports the dynamic update for the change of the network setting, and to reboot the image forming apparatus if the determination unit determines that the application does not support the dynamic update for the change of the network setting.