A method of tracking a location of a second electronic device by a first electronic device, the method comprising: sending, by the first electronic device, a request to a third electronic device to acquire location information of the second electronic device using a first short range wireless communication mode, wherein the first short range wireless communication mode is a Wi-Fi mode for performing communication with a network by connecting to an access point; switching, by the first electronic device, from the first short range wireless communication mode to a second short range wireless communication mode for a first predetermined time interval, wherein the second short range wireless communication mode comprises a hotspot mode in which a Wi-Fi hotspot signal is broadcast; broadcasting, by the first electronic device, a communication signal in the second short range wireless communication mode for the first predetermined time interval; switching back, by the first electronic device, from the second short range wireless communication mode to the first short range wireless communication mode upon expiry of the first predetermined time interval and remaining in the first short range wireless communication mode for a second predetermined time interval; checking, by the first electronic device, if the location information of the second electronic device is received from the third electronic device while the first electronic device remains in the first short range wireless communication mode; upon determining that the location information of the second electronic device is not received from the third electronic device, sending, by the first electronic device to the third electronic device, a second request to further enquire with the third electronic device about an update on the location information of the second electronic device and subsequently performing, in a switching cycle, the switching step, the broadcasting step the switching back step, and the checking step, wherein said second request is a Packet Internet Groper, ping, request; upon determining, by the first electronic device, that the location information of the second electronic device is received in the first short range wireless communication mode from the third electronic device, terminating, by the first electronic device, the switching cycle from the first short range wireless communication mode to the second short range wireless communication mode and vice versa, the location information of the second electronic device being detected by using the broadcasted communication signal. sending, by the first electronic device, a request to a third electronic device to acquire location information of the second electronic device using a first short range wireless communication mode, wherein the first short range wireless communication mode is a Wi-Fi mode for performing communication with a network by connecting to an access point; switching, by the first electronic device, from the first short range wireless communication mode to a second short range wireless communication mode for a first predetermined time interval, wherein the second short range wireless communication mode comprises a hotspot mode in which a Wi-Fi hotspot signal is broadcast; broadcasting, by the first electronic device, a communication signal in the second short range wireless communication mode for the first predetermined time interval; switching back, by the first electronic device, from the second short range wireless communication mode to the first short range wireless communication mode upon expiry of the first predetermined time interval and remaining in the first short range wireless communication mode for a second predetermined time interval; checking, by the first electronic device, if the location information of the second electronic device is received from the third electronic device while the first electronic device remains in the first short range wireless communication mode; upon determining that the location information of the second electronic device is not received from the third electronic device, sending, by the first electronic device to the third electronic device, a second request to further enquire with the third electronic device about an update on the location information of the second electronic device and subsequently performing, in a switching cycle, the switching step, the broadcasting step the switching back step, and the checking step, wherein said second request is a Packet Internet Groper, ping, request; upon determining, by the first electronic device, that the location information of the second electronic device is received in the first short range wireless communication mode from the third electronic device, terminating, by the first electronic device, the switching cycle from the first short range wireless communication mode to the second short range wireless communication mode and vice versa, the location information of the second electronic device being detected by using the broadcasted communication signal.