Patent ID: 8823988

Claim:
A method of executing an application program through an internet protocol (IP) address linkage in an image forming apparatus supporting a peer-to-peer (P2P) connection, the method comprising: P2P connecting the image forming apparatus to a wireless device through a wireless local area network (WLAN); driving a soft access point (AP) module of the image forming apparatus so that the image forming apparatus functions as an AP; driving a dynamic host configuration protocol (DHCP) server of the image forming apparatus to allocate a dynamic IP address to the connected wireless device; storing device information of the wireless device including the dynamic IP address allocated to the wireless device and a media access control (MAC) address of the wireless device; linking the dynamic IP address allocated to the wireless device with a static IP address that is preset with respect to the wireless device in the application program by using the stored device information; and executing the application program.