Method for connecting network using Wi-Fi Direct in image forming apparatus, image forming apparatus supporting Wi-Fi Direct and image forming system

In a method for connecting a network using Wi-Fi direct in an image forming apparatus, the image forming apparatus performs a Wi-Fi direct function to be operated as a soft access point (AP). If the image forming apparatus is connected to an external wireless device through the Wi-Fi direct function, the connected wireless device displays an embedded web page provided from the image forming apparatus. The image forming apparatus receives the access information of an infra network to be wirelessly connected in the image forming apparatus inputted through the embedded web page displayed on the wireless device. The image forming apparatus sets a wireless network connection with the infra network based on the access information received from the wireless device.