A method of a mobile terminal for sharing content in a home network environment, the method comprising: in response to accessing an Access Point, AP, connecting, without receiving, from a user, a request for a digital living network alliance, DLNA, service, the mobile terminal to a home network; in response to connecting the mobile terminal to the home network, searching for at least one device (110, 120) connected to the home network; when the at least one device (110, 120) is connected to the home network, identifying a type of the at least one device (110, 120) connected to the home network; determining, according to the type of the at least one device (110, 120), whether to operate the mobile terminal as a content providing server, a player for playing content, or a controller for controlling playing the content; mapping (317, 347) and storing information of the at least one device (110, 120) connected to the home network with the AP; and setting (317, 347) state information of the at least one device (110, 120) to an active state, wherein the step of determining comprises: determining to operate as the content providing server when the at least one device (110, 120) connected to the home network does not include a content providing server; and determining to operate as either the player for playing content or the controller for controlling playing the content when the at least one device (110, 120) connected to the home network includes the content providing server. in response to accessing an Access Point, AP, connecting, without receiving, from a user, a request for a digital living network alliance, DLNA, service, the mobile terminal to a home network; in response to connecting the mobile terminal to the home network, searching for at least one device (110, 120) connected to the home network; when the at least one device (110, 120) is connected to the home network, identifying a type of the at least one device (110, 120) connected to the home network; determining, according to the type of the at least one device (110, 120), whether to operate the mobile terminal as a content providing server, a player for playing content, or a controller for controlling playing the content; mapping (317, 347) and storing information of the at least one device (110, 120) connected to the home network with the AP; and setting (317, 347) state information of the at least one device (110, 120) to an active state, wherein the step of determining comprises: determining to operate as the content providing server when the at least one device (110, 120) connected to the home network does not include a content providing server; and determining to operate as either the player for playing content or the controller for controlling playing the content when the at least one device (110, 120) connected to the home network includes the content providing server. determining to operate as the content providing server when the at least one device (110, 120) connected to the home network does not include a content providing server; and determining to operate as either the player for playing content or the controller for controlling playing the content when the at least one device (110, 120) connected to the home network includes the content providing server.