Provided is a network system. The network system includes a first component performing a preset function, the first component having a first device code and a second component exchanging information with the first component to be communicably connected to the first component, the second component having a second device code. When a command for communicable connection is inputted into the first component or the second component, a connection sequence is generated from the component in which the command is inputted to exchange an IP address and the device code of each of the components between one component generating the connection sequence and the other component receiving the connection sequence.