A method for a first connected device, comprising: receiving (301, 401), via a communication unit of the first connected device, a first Vehicle-to-Everything - V2X - broadcast message from a second connected device, wherein the first V2X broadcast message includes a request for a ride sharing service; determining (303, 403), at the first connected device, a first V2X-message variable associated with the first V2X broadcast message, wherein the first V2X-message variable includes a first signal strength of the first V2X broadcast message; receiving a set of V2X-message variables that are determined at a set of connected devices, connected to the second connected device and other than the first connected device, respectively, wherein the set of V2X-message variables includes a set of received signal strengths of the first V2X broadcast message, wherein the first received signal strength at the first connected device has a maximal value compared with the set of received signal strengths at the set of connected devices other than the first connected device, so that the first connected device has a minimal distance to the second connected device; executing a ride-share matching process to match the first connected device with the second connected device so that a delay of the ride share matching processing is minimized; determining that, compared with the set of connected devices other than the first connected device, the first connected device has a minimal travel time or a minima distance to the second connected device so that the first connected device satisfies a ride-share matching criterion for the second connected device based on the first V2X-message variable and the set of V2X-message variables; responsive to the first connected device satisfying the ride-share matching criterion for the second connected device, matching the first connected device with the second connected device; and responsive to a completion of the ride-share matching process, modifying an operation of the communication unit to establish a secure communication between the first connected device and the second connected device for exchanging ride share information for the ride sharing service. receiving (301, 401), via a communication unit of the first connected device, a first Vehicle-to-Everything - V2X - broadcast message from a second connected device, wherein the first V2X broadcast message includes a request for a ride sharing service; determining (303, 403), at the first connected device, a first V2X-message variable associated with the first V2X broadcast message, wherein the first V2X-message variable includes a first signal strength of the first V2X broadcast message; receiving a set of V2X-message variables that are determined at a set of connected devices, connected to the second connected device and other than the first connected device, respectively, wherein the set of V2X-message variables includes a set of received signal strengths of the first V2X broadcast message, wherein the first received signal strength at the first connected device has a maximal value compared with the set of received signal strengths at the set of connected devices other than the first connected device, so that the first connected device has a minimal distance to the second connected device; executing a ride-share matching process to match the first connected device with the second connected device so that a delay of the ride share matching processing is minimized; determining that, compared with the set of connected devices other than the first connected device, the first connected device has a minimal travel time or a minima distance to the second connected device so that the first connected device satisfies a ride-share matching criterion for the second connected device based on the first V2X-message variable and the set of V2X-message variables; responsive to the first connected device satisfying the ride-share matching criterion for the second connected device, matching the first connected device with the second connected device; and responsive to a completion of the ride-share matching process, modifying an operation of the communication unit to establish a secure communication between the first connected device and the second connected device for exchanging ride share information for the ride sharing service.