A method for selecting a relay device, the method being performed by a remote device and comprising: selecting a first relay device from among at least one relay device on a basis of at least one relay mode to which the remote device is able to adapt and at least one relay mode which is able to be provided by the at least one relay device, wherein the first relay device is used for implementing a communication between the remote device and a network device, and at least one relay mode which is able to be provided by the first relay device matches the at least one relay mode to which the remote device is able to adapt, and the at least one relay mode which is able to be provided by the at least one relay device corresponds to one piece of following reference information: a Relay Service Code, RSC, and wherein the piece of the reference information is carried in a first message, the first message is received by the remote device from the at least one relay device and the first message is a discovery message or a response message for a relay solicitation message sent by the remote device, and the method further comprises: determining, according to the piece of the reference information and a first correspondence, the at least one relay mode which is able to be provided by the at least one relay device, wherein the first correspondence comprises a correspondence between at least one piece of the reference information and at least one relay mode which is able to be provided by a relay device, and the at least one relay mode which is able to be provided by the at least one relay device comprises a relay mode based on a Non-3rd Generation Partnership Project, 3GPP, Inter Working Function, N3IWF. selecting a first relay device from among at least one relay device on a basis of at least one relay mode to which the remote device is able to adapt and at least one relay mode which is able to be provided by the at least one relay device, wherein the first relay device is used for implementing a communication between the remote device and a network device, and at least one relay mode which is able to be provided by the first relay device matches the at least one relay mode to which the remote device is able to adapt, and the at least one relay mode which is able to be provided by the at least one relay device corresponds to one piece of following reference information: a Relay Service Code, RSC, and wherein the piece of the reference information is carried in a first message, the first message is received by the remote device from the at least one relay device and the first message is a discovery message or a response message for a relay solicitation message sent by the remote device, and the method further comprises: determining, according to the piece of the reference information and a first correspondence, the at least one relay mode which is able to be provided by the at least one relay device, wherein the first correspondence comprises a correspondence between at least one piece of the reference information and at least one relay mode which is able to be provided by a relay device, and the at least one relay mode which is able to be provided by the at least one relay device comprises a relay mode based on a Non-3rd Generation Partnership Project, 3GPP, Inter Working Function, N3IWF. determining, according to the piece of the reference information and a first correspondence, the at least one relay mode which is able to be provided by the at least one relay device, wherein the first correspondence comprises a correspondence between at least one piece of the reference information and at least one relay mode which is able to be provided by a relay device, and the at least one relay mode which is able to be provided by the at least one relay device comprises a relay mode based on a Non-3rd Generation Partnership Project, 3GPP, Inter Working Function, N3IWF.