A communications device acting as a relay device configured to communicate with an infrastructure equipment of a mobile communications network and a remote communications device operating with the mobile communications network, the communications device acting as the relay device comprising a receiver configured to receive signals representing data via a first wireless access interface from the infrastructure equipment for transmission to the remote communications device and to receive signals representing data via a second wireless access interface from the remote communications device for transmission to the infrastructure equipment, the second wireless access interface being a device-to-device, D2D, wireless access interface, a transmitter configured to transmit signals representing data via the first wireless access interface to the infrastructure equipment and to transmit signals representing data via the second wireless access interface to the remote communications device, and a controller configured to control the transmitter to transmit the signals and to control the receiver to receive the signals, wherein the controller is configured in combination with the transmitter and the receiver to receive, from the remote communications device whilst the remote communications device is in an idle state, a first random access preamble message, the first random access preamble message comprising an identifier of the remote communications device, to transmit, in response to the first random access preamble message, a random access response message to the remote communications device, the random access response message comprising an indication of communications resources allocated to the remote communications device, to receive, from the remote communications device and using the communications resources indicated in the random access response message, a scheduled transmission comprising a connection request message and a first contention resolution identifier, and to transmit to the remote communications device a second contention resolution identifier, wherein the controller in combination with the receiver is configured, if the first contention resolution identifier is the same as the second contention resolution identifier, to receive an indication from the remote communications device that a successful connection for data communications has been made between the remote communications device and the communications device acting as the relay device. a receiver configured to receive signals representing data via a first wireless access interface from the infrastructure equipment for transmission to the remote communications device and to receive signals representing data via a second wireless access interface from the remote communications device for transmission to the infrastructure equipment, the second wireless access interface being a device-to-device, D2D, wireless access interface, a transmitter configured to transmit signals representing data via the first wireless access interface to the infrastructure equipment and to transmit signals representing data via the second wireless access interface to the remote communications device, and a controller configured to control the transmitter to transmit the signals and to control the receiver to receive the signals, wherein the controller is configured in combination with the transmitter and the receiver to receive, from the remote communications device whilst the remote communications device is in an idle state, a first random access preamble message, the first random access preamble message comprising an identifier of the remote communications device, to transmit, in response to the first random access preamble message, a random access response message to the remote communications device, the random access response message comprising an indication of communications resources allocated to the remote communications device, to receive, from the remote communications device and using the communications resources indicated in the random access response message, a scheduled transmission comprising a connection request message and a first contention resolution identifier, and to transmit to the remote communications device a second contention resolution identifier, wherein the controller in combination with the receiver is configured, if the first contention resolution identifier is the same as the second contention resolution identifier, to receive an indication from the remote communications device that a successful connection for data communications has been made between the remote communications device and the communications device acting as the relay device.