A camera (400, 802) in a security system, the camera comprising: a video recording unit configured to record a video; a communication unit; and a controller configured to: identify a subject from the video, predict a moving path of the subject, in response to identifying that the subject is predicted to move outside of a view range of the camera (400, 802), transmit a discovery signal, wherein the discovery signal comprises information for indicating that the type of target camera to be discovered is a WI-FI camera, receive response signals from a plurality of neighboring cameras (804,806) in response to the discovery signal, each response signal comprising type information and location information of a respective neighboring camera, identify at least one target camera corresponding to the moving path among the plurality of neighboring cameras based on the location information of the respective neighboring cameras included in the respective response signals, identify that the at least one target camera supports Wi-Fi based on the type information of the at least one target camera, control the communication unit to directly connect to the at least one target camera, and control the communication unit to transmit a recording command comprising information about a motion pattern of the subject and location information necessary for continuously recording the moving path of the subject to the at least one target camera. a video recording unit configured to record a video; a communication unit; and a controller configured to: identify a subject from the video, predict a moving path of the subject, in response to identifying that the subject is predicted to move outside of a view range of the camera (400, 802), transmit a discovery signal, wherein the discovery signal comprises information for indicating that the type of target camera to be discovered is a WI-FI camera, receive response signals from a plurality of neighboring cameras (804,806) in response to the discovery signal, each response signal comprising type information and location information of a respective neighboring camera, identify at least one target camera corresponding to the moving path among the plurality of neighboring cameras based on the location information of the respective neighboring cameras included in the respective response signals, identify that the at least one target camera supports Wi-Fi based on the type information of the at least one target camera, control the communication unit to directly connect to the at least one target camera, and control the communication unit to transmit a recording command comprising information about a motion pattern of the subject and location information necessary for continuously recording the moving path of the subject to the at least one target camera. identify a subject from the video, predict a moving path of the subject, in response to identifying that the subject is predicted to move outside of a view range of the camera (400, 802), transmit a discovery signal, wherein the discovery signal comprises information for indicating that the type of target camera to be discovered is a WI-FI camera, receive response signals from a plurality of neighboring cameras (804,806) in response to the discovery signal, each response signal comprising type information and location information of a respective neighboring camera, identify at least one target camera corresponding to the moving path among the plurality of neighboring cameras based on the location information of the respective neighboring cameras included in the respective response signals, identify that the at least one target camera supports Wi-Fi based on the type information of the at least one target camera, control the communication unit to directly connect to the at least one target camera, and control the communication unit to transmit a recording command comprising information about a motion pattern of the subject and location information necessary for continuously recording the moving path of the subject to the at least one target camera.