Patent ID: 7979553

Claim:
An electronic device comprising: a network interface unit that connects to a Universal Plug and Play (UPnP) network; and a processor that (a) determines whether or not the electronic device receives a BYEBYE message from the UPnP network, (b) controls the electronic device to transmit a predetermined message for detecting an address server, (c) determines whether or not a response of the predetermined message is received from the address server, (d) determines whether or not the electronic device is performing transfer of data to an external device if the response of the predetermined message is received from the address server, (e) controls the electronic device not to change a first network address generated in the electronic device to a second network address assigned by the address server while the transfer of the data is being performed if the electronic device is performing transfer of the data to the external device when the response of the predetermined message is received from the address server, (f) changes the first network address generated in the electronic device to the second network address assigned by the address server after the transfer of the data ends if the electronic device is performing transfer of the data to the external device when the response of the predetermined message is received from the address server, and (g) changes the first network address generated in the electronic device to the second network address assigned by the address server if the electronic device is not performing the transfer of the data to the external device when the response of the predetermined message is received from the address server.