Method and system for accessing remote service

By introducing the third device and the target bridge connection in the system, the problem that the target device cannot access the remote server is solved, and the target device can access the remote service through the target connection.

CN119892907APending Publication Date: 2025-04-25KYLAND TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510050281.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-13
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In the prior art, the target device cannot access the electronic device that is already in remote access or the server that is being remotely accessed.

Method used

By introducing a third device into the system, using the application service instructions and the activation bridge instructions, a target bridge connection is established, so that the target device can access remote services through the target connection.

Benefits of technology

The target device can access the remote server, solve the problem of inaccessibility in the prior art, and communicate through the target connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892907A_ABST
    Figure CN119892907A_ABST
Patent Text Reader

Abstract

The invention discloses a remote service access method and system, and belongs to the technical field of computers. The method is applied to a system comprising a first device, a second device and a third device. The first device and the second device are both in communication connection with the third device; the second equipment can access the remote service of the remote server; the method comprises the following steps: a first device sends an application service instruction to a second device through a third device; the application service instruction is used for applying for accessing remote service; after confirming that the remote service exists, the second equipment sends a network bridge starting instruction to third equipment, so that the third equipment starts a target network bridge; and when receiving a remote service access request of the user side, the first device establishes a target connection from the user side to the remote server through the target network bridge, the second device and the third device, so that the first device accesses the remote service based on the target connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a method and system for accessing remote services. Background Art

[0002] In the related art, in order to meet actual needs, remote access technology can be used to enable electronic devices to perform remote access services on a remote server.

[0003] However, target devices other than the electronic device accessing the remote service and the server being accessed remotely cannot access the electronic device that is already performing remote access, nor can they access the server being accessed remotely. Summary of the invention

[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a method and system for accessing a remote service, so that a target device communicates with a remote service end remotely accessed by other devices other than the target device.

[0005] In a first aspect, the present application provides a method for accessing a remote service, the method being applied to a system including a first device, a second device, and a third device; the first device and the second device are both communicatively connected to the third device; the second device can access a remote service of a remote server; the method comprising:

[0006] The first device sends a service application instruction to the second device through the third device; the service application instruction is used to apply for access to a remote service;

[0007] After confirming the existence of the remote service, the second device sends an instruction to start the bridge to the third device, so that the third device starts the target bridge;

[0008] When the first device receives a remote service access request from the user side, it establishes a target connection from the user side, through the first device, the target bridge, the second device and the third device, to the remote service end, so that the first device can access the remote service based on the target connection.

[0009] According to the method for accessing remote services of the present application, the first device sends an application service instruction for applying for access to the remote service to the third device, so that the third device responds to the start bridge instruction sent by the second device, starts the target bridge, and when receiving the remote service access request from the user side, establishes a target connection from the user side, through the first device, the target bridge, and the second device to the remote service end through the target bridge, so that the user side accesses the remote service through the target connection, and then accesses the remote service end through the remote service.

[0010] According to an embodiment of the present application, after the target bridge is started, the method further includes: the first device receives the bridge connection information sent by the target bridge to connect with the target bridge based on the bridge connection information;

[0011] The bridge connection information includes: the listening port of the target bridge based on the requested service; the number of the listening port corresponds to the number of the requested services.

[0012] According to one embodiment of the present application, after the first device receives the bridge connection information sent by the target bridge, the method also includes: feeding back the access port to the user side, the number of access ports is the same as the number of listening ports; the access port is used by the user side to send a service access request to the first device based on the port.

[0013] According to an embodiment of the present application, when the first device receives a remote service access request from the user side, the first device establishes a target connection from the user side, through the first device, the target bridge, and the second device to the remote service end through the target bridge, including:

[0014] Upon receiving the remote service access request, the first device establishes a second connection with the target bridge and sends a service access instruction to the second device through the third device;

[0015] The second device receives the access service instruction sent by the first device and forwarded by the third device, and establishes a third connection with the target bridge according to the access service instruction;

[0016] The target bridge connects the second connection and the third connection and sends a successful match instruction to the first device and the second device to establish a target connection; the successful match instruction is used to connect the first connection and the second connection; the first connection is a connection between the user side and the first device.

[0017] According to one embodiment of the present application, the target bridge connects the second connection and the third connection, including:

[0018] The target bridge receives the access service instruction sent by the first device and the matching connection instruction sent by the second device through the third connection;

[0019] The target bridge connects the second connection and the third connection when the connection instruction and the access service instruction are matched.

[0020] According to an embodiment of the present application, before the first device sends a service application instruction to the second device through the third device, the method further includes:

[0021] The second device sends a service registration instruction to the third device, so that the third device stores the remote service information.

[0022] According to an embodiment of the present application, after the target bridge connects the second connection and the third connection and sends a matching success instruction to the first device and the second device, the method further includes:

[0023] The second device receives the successful matching instruction, establishes a fourth connection with the remote server, and connects the third connection and the fourth connection.

[0024] According to an embodiment of the present application, when the first device receives a remote service access request from the user side, a target connection is established from the user side, through the first device, the target bridge, the second device and the third device to the remote service end, so that the first device accesses the remote service based on the target connection. The method further includes:

[0025] The first device sends a service release instruction to the target bridge, so that the target bridge disconnects the target connection.

[0026] According to an embodiment of the present application, when the first device receives a remote service access request from the user side, a target connection is established from the user side, through the first device, the target bridge, the second device and the third device to the remote service end, so that the first device accesses the remote service based on the target connection. The method further includes:

[0027] The second device sends a service deregistration instruction to the third device and the target bridge, so that the third device deletes the remote service information and the target bridge performs an exit operation.

[0028] In a second aspect, the present application provides a system for accessing a remote service, the system comprising a first device, a second device and a third device; the first device and the second device are both communicatively connected to the third device; the second device can access a remote service of a remote server;

[0029] The first device is used to send a service application instruction to the second device through the third device; the service application instruction is used to apply for access to a remote service;

[0030] The second device is used to send an instruction to start the network bridge to the third device after confirming the existence of the remote service, so that the third device starts the target network bridge;

[0031] The first device is also used to establish a target connection from the user side, through the first device, the target bridge, the second device and the third device to the remote service end when receiving a remote service access request from the user side, so that the first device can access the remote service based on the target connection.

[0032] According to the system for accessing remote services of the present application, the first device sends an application service instruction for applying for access to the remote service to the third device, so that the third device forwards the application service instruction to the second device. The third device then responds to the start bridge instruction sent by the second device, starts the target bridge, and establishes a target connection from the user side, through the first device, the target bridge, and the second device to the remote service end through the target bridge. Based on the target connection, the remote service is accessed through the second device, thereby allowing the first device to access the remote service through the second device in the same public network, thereby achieving the purpose of communicating with the remote service end remotely accessed by the second device.

[0033] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0035] Figure 1 is a schematic diagram of a situation in which a first device cannot access a remote service in the related art;

[0036] Figure 2 This is one of the flowcharts of the method for accessing remote services provided in the embodiment of the present application;

[0037] Figure 3 This is the second flowchart of the method for accessing remote services provided in the embodiment of the present application;

[0038] Figure 4 is a schematic diagram of accessing remote services provided by an embodiment of the present application;

[0039] Figure 5 is a schematic diagram of the system structure for accessing remote services provided in an embodiment of the present application;

[0040] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0042] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0043] In related technologies, such as Figure 1 As shown, the first device and the second device can both be intranet machines, the third device can be a public network machine, and the first device and the second device can both be in the public network of the third device. The fourth device can be a device accessed by the second device through remote access technology. Even if the first device and the second device are in the same public network, the first device still cannot access the fourth device accessed remotely by the second device.

[0044] The following describes in detail the method for accessing a remote service and the system for accessing a remote service provided by the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0045] The method for accessing remote services may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.

[0046] The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad). It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., a touch screen display and / or a touch pad).

[0047] In the following various embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse and a joystick.

[0048] The method for accessing a remote service provided in an embodiment of the present application may be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the method for accessing a remote service. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras, and wearable devices. The method for accessing a remote service provided in an embodiment of the present application is described below using an electronic device as an example of an execution subject.

[0049] like Figure 2As shown, the method for accessing remote services includes: step 210 , step 220 and step 230 .

[0050] Step 210: The first device sends a service application instruction to the second device through the third device; the service application instruction is used to apply for access to a remote service.

[0051] In actual execution, the first device may send a service application instruction for applying for access to a remote service to the third device. The first device may be the target device mentioned in the background technology. The first device may be an intranet device, for example, the first device may be an intranet device accessed by the user side. The third device may be a public network device, and both the first device and the second device may be in the public network of the third device. The second device may be a device for accessing a remote service, and the second device may access a server through a remote service, for example, the second device accesses a fourth electronic device through a remote service, and the fourth electronic device may be a server.

[0052] In some embodiments, the first device may send a first registration instruction to the third device to complete the registration of the first device at the third device. The first registration instruction may include the name information of the first device, the first device identifier, the application service ID information and the TCP service information, and the ID information may include the unique identifier representing the first device. Correspondingly, the second device may also send a second registration instruction to the third device to complete the registration of the second device at the third device. The second registration instruction may include the name information of the second device, the second device identifier, the ID information and the TCP service information, and the ID information may include the unique identifier representing the second device.

[0053] In actual implementation, the first device may send a service application instruction for applying for access to a remote service to the third device, and the remote service is a remote access service for the second device to access the fourth device. The third device may forward the service application instruction to the second device, receive and respond to the start bridge instruction sent by the second device, and start the target bridge.

[0054] In actual execution, the service application instruction may include a service identifier and TCP service information.

[0055] In actual execution, the third device may pre-store information about the remote service accessed by the second device, and the remote service information may include information about the device accessing the remote service and information about the device accessed by the remote service. After receiving the service application instruction sent by the first device for applying for access to the remote service, the third device forwards the service application instruction to the second device based on the service identifier and TCP service information in the service application instruction.

[0056] Step 220: After confirming the existence of the remote service, the second device sends an instruction to start the bridge to the third device, so that the third device starts the target bridge.

[0057] In some embodiments, a first device sends a service application instruction to a third device. After the third device forwards the service application instruction to a second device, the second device can determine whether the first device is a registered device and whether the second device has registered for a TCP service based on the name information and service application ID information of the first device in the service application instruction. When it is determined that the first device is a registered device and the second device has registered for a TCP service, the second device can send a start bridge instruction to the third device to start the target bridge.

[0058] In some embodiments, a first device sends a service application instruction to a third device. After the third device forwards the service application instruction to a second device, the second device can determine whether the first device is a registered device and whether the TCP service of the first device exists based on the name information of the first device, the identifier of the first device, and the service application ID information in the service application instruction. When it is determined that the first device is a registered device and the TCP service of the first device exists, the second device can send a start bridge instruction to the third device to start the target bridge.

[0059] In some embodiments, after starting the target bridge, when a remote service access request from the user side is received, a first connection between the user side and the first device, a second connection between the first device and the target bridge, and a third connection between the second device and the target bridge are established, and the first connection and the second connection, and the second connection and the third connection are connected to establish a target connection from the user side, through the first device, the target bridge, and the second device to the remote service end.

[0060] Step 230: When the first device receives a remote service access request from the user side, it establishes a target connection from the user side, through the first device, the target bridge, the second device and the third device, to the remote service end, so that the first device can access the remote service based on the target connection.

[0061] In some embodiments, after the third device starts the target network bridge, the first device may accept a listening port instruction sent by the target network bridge to determine whether there is a first connection between the user side and the first device.

[0062] In actual implementation, after establishing a target connection from the user side through the first device, the target bridge, and the second device to the remote server, the user side can access the remote service based on the target connection to communicate with the remote server accessed by the remote service through the remote service. For example, the user side can communicate with the fourth device accessed by the remote service by accessing the remote service.

[0063] In some embodiments, after accessing the remote service through the second device based on the target connection, the target bridge may be instructed to disconnect the target connection to terminate the user side's access to the remote service.

[0064] According to the method for accessing remote services of the present application, an application service instruction for applying for access to remote services is sent to a third device, so that the third device responds to the start bridge instruction sent by the second device and starts the target bridge. When a remote service access request from the user side is received, a target connection is established from the user side, through the first device, the target bridge, and the second device to the remote service end, through the target bridge, so that the user side accesses the remote service through the target connection, and then accesses the remote service end through the remote service.

[0065] In some embodiments, after the target bridge is started, the bridge connection information sent by the target bridge can be received to connect to the target bridge based on the bridge connection information; the bridge connection information may include: the listening port of the target bridge based on the requested service; the number of listening ports corresponds to the number of requested services.

[0066] In actual execution, after the target bridge is started, the same number of listening ports can be started based on the number of TCP services carried in the service application instruction, and the information of the listening ports can be encapsulated as bridge connection information and sent to the first device. After receiving the bridge connection information sent by the target bridge, the first device connects to the target bridge based on the bridge connection information. In some embodiments, the first device can establish a second connection with the listening port based on the information of the listening port in the bridge connection information, for example, based on the number of listening ports, establish the same number of second connections with the target bridge, and each second connection connects one listening port to the first device.

[0067] In some embodiments, after the first device receives the bridge connection information sent by the target bridge, it can feedback the access port to the user side, and the number of access ports is the same as the number of listening ports; the access port is used by the user side to send a service access request to the first device based on the port.

[0068] In actual execution, after receiving the bridge connection information sent by the target bridge, the first device can start the same number of access ports based on the number of listening ports carried in the bridge connection information, and feed back the access port information to the user side, and monitor the remote service access sent by the user side based on the access port.

[0069] In some embodiments, upon receiving a remote service access request, the first device establishes a second connection with the target bridge and sends an access service instruction to the second device through a third device; the second device receives the access service instruction issued by the first device forwarded by the third device, and establishes a third connection with the target bridge according to the access service instruction; the target bridge connects the second connection and the third connection and sends a match success instruction to the first device and the second device to establish a target connection; the match success instruction is used to connect the first connection and the second connection; the first connection is a connection between the user side and the first device.

[0070] In some embodiments, when receiving a remote service access request from the user side, the first device can establish a first connection between the user side and the first device, and a second connection between the first device and the target bridge, and based on the second connection, send an access service instruction to the third device, so that after the third device sends the access service instruction to the second device, the second device establishes a third connection with the target bridge and sends a matching connection instruction to the target bridge through the third connection; receives the matching success instruction sent by the target bridge, connects the first connection and the second connection to establish the target connection; the matching success instruction is an instruction sent by the target bridge to the first device and the second device when the matching connection instruction and the access service instruction match; when the matching connection instruction and the access service instruction match, the target bridge connects the second connection and the third connection.

[0071] In actual execution, the first device can establish a first connection between the user side and the first device and a second connection between the first device and the target bridge when monitoring the remote service access sent by the user side through the access port. The second connection can be a TCP connection. The first device can send an access service instruction to the third device through the second connection. The access service instruction can include application service ID information, a first access service identifier, and TCP connection information. The third device can forward the access service instruction to the second device.

[0072] In actual execution, after receiving the access service instruction forwarded by the third device, the second device can confirm whether it is the first device that applies for the access service based on the service ID information in the access service instruction. If it is the first device that applies for the access service, the second device establishes a third connection with the target bridge and sends a matching connection instruction to the target bridge through the third connection. The matching connection instruction may include the second access service identifier.

[0073] In some embodiments, the target bridge receives an access service instruction sent by the first device and a matching connection instruction sent by the second device through a third connection; the target bridge connects the second connection and the third connection when the matching connection instruction matches the access service instruction.

[0074] In actual execution, after receiving the access service instruction issued by the first device and the matching connection instruction sent by the second device through the third connection, the target bridge can determine whether the matching connection instruction and the access service instruction match. When the matching connection instruction and the access service instruction match, the target bridge connects the second connection and the third connection to establish a target connection from the user side, through the first device, the target bridge, and the second device to the remote server.

[0075] In actual execution, after receiving the matching connection instruction sent by the second device through the third connection, the target bridge can determine whether the matching connection instruction matches the access service instruction based on the first access service identifier in the access service instruction and the second access service identifier in the matching connection instruction. In some embodiments, it can be determined whether the first access service identifier in the access service instruction and the second access service identifier in the matching connection instruction are the same. If they are the same, it is determined that the access service instruction and the matching connection instruction match. On the contrary, if they are not the same, it is determined that the access service instruction and the matching connection instruction do not match.

[0076] In some embodiments, after the target bridge connects the second connection and the third connection and the first device connects the first connection and the second connection to establish a target connection from the user side, through the first device, the target bridge, and the second device to the remote service end, the user side can communicate with the remote service end accessed by the remote service based on the target connection. In some embodiments, the user side sends communication data to the first device through the first connection, the first device sends the communication data to the target bridge through the second connection, the target bridge sends the communication data to the second device through the third connection, and the second device sends the communication data to the remote service end accessed by the remote service through the remote service.

[0077] According to the method for accessing remote services in an embodiment of the present application, when a remote service access sent by a user side is monitored through an access port, a first connection between the user side and a first device, a second connection between the first device and a target bridge, and an access service instruction is sent to a third device, so that after the third device sends the access service instruction to the second device, the second device establishes a third connection with the target bridge and sends a matching connection instruction to the target bridge through the third connection; receives the matching success instruction sent by the target bridge, connects the first connection and the second connection to establish a target connection, and then based on the target connection, accesses the remote service through the second device, so that the user side can achieve the purpose of communicating with the remote service end remotely accessed by the second device by accessing the remote service.

[0078] In some embodiments, after starting the target bridge and before establishing the second connection with the target bridge, the first device may receive a listening port instruction sent by the target bridge; and listen to the first target port according to the listening port instruction to determine whether the first connection exists.

[0079] In actual execution, after starting the target network bridge, the first device can accept the listening port instruction sent by the target network bridge, and listen to the first target port according to the listening port instruction. The first target port can be a port in the first device for access by the user side. The first device can determine whether there is a first connection between the first device and the user side based on the listening information of listening to the first target port. When it is determined that the first connection exists, the first device establishes a second connection with the target network bridge.

[0080] According to the method for accessing remote services in an embodiment of the present application, after starting the target bridge and before establishing a second connection with the target bridge, the first device can receive a listening port instruction sent by the target bridge; according to the listening port instruction, the first target port is listened to to determine whether the first connection exists, and when the first connection between the user side and the first device is listened to, a second connection with the target bridge is established, and an access service instruction is sent to a third device, so that the third device sends the access service instruction to the second device, and then the second device establishes a third connection with the target bridge and sends a matching connection instruction to the target bridge through the third connection; the matching success instruction sent by the target bridge is received, the first connection and the second connection are connected to establish a target connection, and then based on the target connection, the remote service is accessed through the second device, so that the user side can achieve the purpose of communicating with the remote service end remotely accessed by the second device by accessing the remote service.

[0081] In some embodiments, when the first device receives a remote service access request from the user side, a target connection is established from the user side, through the first device, the target bridge, the second device and the third device, to the remote service end, so that the first device can access the remote service based on the target connection. After that, the first device can send a release service instruction to the target bridge to cause the target bridge to disconnect the target connection.

[0082] In actual execution, after the first device accesses the remote service based on the target connection, the first device may send a service release instruction to the target bridge after receiving an instruction from the user side to terminate access to the remote service through the target connection, or may send a service release instruction to the target bridge after the first connection between the user side and the first device fails.

[0083] In some embodiments, the service release instruction may include information of the target connection to be released. After receiving the service release instruction sent by the first device, the target bridge disconnects the target connection according to the information of the target connection to be released in the service release instruction.

[0084] In actual execution, after receiving the release service instruction sent by the first device, the target bridge disconnects the second connection between the first device and the target bridge in the target connection, and the third connection between the target bridge and the second device according to the information of the target connection to be released in the release service instruction, so as to disconnect the target connection.

[0085] According to the method for accessing remote services in an embodiment of the present application, a target connection is established, and then based on the target connection, the remote service is accessed so that the user side accesses the remote service through the target connection, and after communicating with the remote service end remotely accessed by the second device, a service release instruction is sent to the target bridge to cause the target bridge to disconnect the target connection, thereby achieving the purpose of releasing resources.

[0086] In some embodiments, the first device may send a logout instruction to the third device and the target bridge. The logout instruction may include the first device identifier of the first device. The logout instruction is used to log out the first device on the third device and prompt the target bridge to disconnect the target connection.

[0087] In some embodiments, before the first device sends a service application instruction to the second device through the third device, the second device may send a service registration instruction to the third device so that the third device stores the remote service information.

[0088] In actual execution, the second device can send a registration service instruction to the third device. The registration service instruction may include device information of the second device and information of the remote service accessed by the second device. After receiving the registration service instruction, the third device stores the device information of the second device and the information of the remote service accessed by the second device, so that when the third device receives the application service instruction sent by the first device, it can forward the application service instruction to the second device.

[0089] According to the method for accessing remote services of the present application, by receiving an application service instruction for applying for access to a remote service issued by a first device and forwarded by a third device, when it is determined that the remote service requested by the application service instruction exists, a start bridge instruction is sent to the third device, so that the third device starts a target bridge, and through the target bridge, a target connection is established from the user side, through the first device, the target bridge, and the second device to the remote service end, and the first device's access to the remote service through the target connection is relayed, so that the user side can access the remote service through the target connection, and then access the remote service end through the remote service.

[0090] In some embodiments, when the first device receives a remote service access request from the user side, a target connection is established from the user side, through the first device, the target bridge, the second device and the third device to the remote service end, so that the first device can access the remote service based on the target connection. After that, the second device can send a service cancellation instruction to the third device and the target bridge, so that the third device deletes the remote service information and the target bridge performs an exit operation.

[0091] In some embodiments, the service deregistration instruction may include information about the remote service to be deregistered and information about the target connection where the remote service is located. After receiving the service deregistration instruction sent by the second device, the target bridge deletes the information about the remote service to be deregistered in the service deregistration instruction and disconnects the target connection.

[0092] In actual execution, after receiving the deregistration service instruction sent by the second device, the target bridge disconnects the second connection between the first device and the target bridge in the target connection, and the third connection between the target bridge and the second device according to the information of the target connection to be deregistered in the deregistration service instruction, so as to disconnect the target connection.

[0093] According to the method for accessing remote services in an embodiment of the present application, a target connection is established, and then based on the target connection, the remote service is accessed through the second device, so that the first device accesses the remote service through the second device in the same public network, and after communicating with the device remotely accessed by the second device, a service cancellation instruction is sent to the target bridge to cause the target bridge to disconnect the target connection, thereby achieving the purpose of releasing resources.

[0094] In some embodiments, the second device can receive an access service instruction issued by the first device and forwarded by the third device; establish a third connection with the target bridge according to the access service instruction; send a matching connection instruction to the target bridge through the third connection, so that the target bridge connects the second connection and the third connection and sends a matching success instruction to the first device and the second device to establish the target connection when the matching connection instruction and the access service instruction match; the matching success instruction is used to connect the first connection and the second connection; the first connection is the connection between the user side and the first device; the second connection is the connection between the first device and the target bridge.

[0095] In actual execution, after receiving the access service instruction forwarded by the third device, the second device can confirm whether it is the first device that applies for the access service based on the service ID information in the access service instruction. If it is the first device that applies for the access service, the second device establishes a third connection with the target bridge and sends a matching connection instruction to the target bridge through the third connection. The matching connection instruction may include the second access service identifier.

[0096] In actual execution, after receiving the matching connection instruction sent by the second device through the third connection, the target bridge can determine whether the matching connection instruction and the access service instruction match. When the matching connection instruction and the access service instruction match, the target bridge connects the second connection and the third connection to establish a target connection from the user side, through the first device, the target bridge, and the second device to the remote service end.

[0097] In actual execution, after receiving the matching connection instruction sent by the second device through the third connection, the target bridge can determine whether the matching connection instruction matches the access service instruction based on the first access service identifier in the access service instruction and the second access service identifier in the matching connection instruction. In some embodiments, it can be determined whether the first access service identifier in the access service instruction and the second access service identifier in the matching connection instruction are the same. If they are the same, it is determined that the access service instruction and the matching connection instruction match. On the contrary, if they are not the same, it is determined that the access service instruction and the matching connection instruction do not match.

[0098] In some embodiments, after the target bridge connects the second connection and the third connection and the first device connects the first connection and the second connection to establish a target connection from the user side, through the first device, the target bridge, and the second device to the remote service end, the user side can communicate with the remote service end accessed by the remote service based on the target connection. In some embodiments, the user side sends communication data to the first device through the first connection, the first device sends the communication data to the target bridge through the second connection, the target bridge sends the communication data to the second device through the third connection, and the second device sends the communication data to the remote service end accessed by the remote service through the remote service.

[0099] According to the method for accessing remote services in an embodiment of the present application, after the third device sends the access service instruction to the second device, the second device establishes a third connection with the target bridge and sends a matching connection instruction to the target bridge through the third connection; receives the matching success instruction sent by the target bridge, connects the first connection and the second connection to establish a target connection, and then accesses the remote service through the second device based on the target connection, so that the first device accesses the remote service through the second device in the same public network, thereby achieving the purpose of communicating with the remote service end remotely accessed by the second device.

[0100] In some embodiments, the second device may receive a successful match instruction, establish a fourth connection with the remote server, and connect the third connection and the fourth connection.

[0101] In actual execution, the second device can establish a fourth connection with the remote service based on the received successful matching instruction, and connect the third connection and the fourth connection to establish a connection between the user side and the remote service end accessed by the remote service through the target connection and the fourth connection.

[0102] According to the method for accessing remote services of an embodiment of the present application, a fourth connection with the remote service is established, and the third connection and the fourth connection are connected, so that the first device can access the remote service through the second device in the same public network, thereby achieving the purpose of communicating with the remote service end remotely accessed by the second device.

[0103] In order to better understand the method for accessing remote services provided in the embodiments of the present application, further explanation is given below. It should be understood that the following discussion is only exemplary.

[0104] This application provides a method for accessing remote services. The specific steps can be as follows: Figure 3 As shown:

[0105] Step 310: The first device and the second device send a registration service instruction to the third device.

[0106] In actual execution, the first device may send a registration service instruction to the third device. The first device may be the target device mentioned in the background technology. The first device may be an intranet device, for example, the first device may be an intranet device accessed by the user side. The third device may be a public network device, and both the first device and the second device may be in the public network of the third device. The second device may be a device for accessing remote services, and the second device may access the remote service end through the remote service, for example, the second device accesses the fourth electronic device through the remote service.

[0107] In some embodiments, the first device may send a registration service instruction to the third device to complete the registration of the first device at the third device. The registration service instruction sent by the first device may include the name information of the first device, the first device identifier and TCP service information, and the ID information may include a unique identifier representing the first device.

[0108] In actual execution, the second device can send a registration service instruction to the third device. The registration service instruction sent by the second device may include device information of the second device and information of the remote service accessed by the second device. After receiving the registration service instruction, the third device stores the device information of the second device and the information of the remote service accessed by the second device.

[0109] In some embodiments, the first device, the second device, and the third device may send instructions based on the target communication protocol, for example, sending a registration service instruction based on the target communication protocol. The target communication protocol may be a communication protocol based on a TCP service, and the structure of the target communication protocol is shown in Table 1:

[0110] magic number Protocol Number Version Number Service Type instruction Data length data 4 bytes 1 byte 1 byte 1 byte 1 byte 4 bytes N bytes

[0111] Table 1

[0112] Among them, the first field is the magic number, which occupies 4 bytes: 0x00049541; the second field is the protocol number, which occupies 1 byte, such as 0x01; the third field is the version number, which occupies 1 byte; the fourth field is the service type, which occupies 1 byte, such as 0x01 for TCP service, 0x02 for UDP service, 0x03 for serial port service, and 0x04 for USB camera service; the fifth field is the instruction, which occupies 1 byte; the sixth field is the data length, which indicates the length (bytes) of the following data, and occupies 4 bytes; the seventh field is the data, which varies according to different instructions, using the form of json string, and the number of bytes occupied is not fixed. The instructions of the target communication protocol are shown in Table 2:

[0113] instruction value describe Register for a service 0x01 First device, second device registration service Application Service 0x02 First equipment application service instruction Start the target bridge 0x03 Start the target bridge Listening Port 0x04 The target bridge container instructs the first device to listen on the corresponding port Access Services 0x05 First Device Access Service Matching Connections 0x06 Target bridge for connection matching Matching success 0x07 Target bridge connection matching successful Transferring Data 0x08 Communication data is transmitted via the target connection Release Service 0x09 Release the target connection Deregister Service 0x0A Second device logs out of remote service

[0114] Table 2

[0115] In actual implementation, the target communication protocol is not limited to TCP service, UDP service (unicast or broadcast), serial port, USB camera, etc. can all be applicable to the target communication protocol.

[0116] In some embodiments, the first device sends a registration service instruction to the third device, and the registration service instruction includes the name of the first device, the identifier of the first device and TCP service information. After receiving the registration service instruction (0x01), the third device verifies the registration service instruction. If the verification is successful, the data of the first device is updated to the database; if the verification fails, no operation is required.

[0117] Step 320: The first device sends a service application instruction to the third device, so that the third device forwards the service application instruction to the second device.

[0118] In some embodiments, the first device sends a service application instruction (0x02) to a third device, and the third device forwards the service application instruction to the second device. The content of the service application instruction may include the device ID of the first device, the service ID (used to identify the service application this time) and the applied TCP service information.

[0119] Step 330: The second device receives the service application instruction sent by the first device and forwarded by the third device, and when determining that the remote service requested by the service application instruction exists, sends a start bridge instruction to the third device, so that the third device starts the target bridge.

[0120] In some embodiments, the first device sends a service application instruction to the third device. After the third device forwards the service application instruction to the second device, the second device can determine whether the first device is a registered device and whether the second device has registered for the TCP service based on the name information of the first device, the identifier of the first device, and the service application ID information in the service application instruction. When it is determined that the first device is a registered device and the second device has registered for the TCP service, the second device can send a start bridge instruction (0x03) to the third device to start the target bridge.

[0121] In some embodiments, the second device may send a start bridge instruction (0x03) to the third device to start a target bridge, or may send multiple start bridge instructions to the third device to start multiple target bridges. The third device receives the start bridge instruction, uses the start bridge instruction as the startup parameter of the target bridge, and starts the target bridge. After the target bridge is started, it sends a listen port instruction (0x04) to the first device and the second device, so that the first device listens to the corresponding port. After receiving the listen port instruction, the first device and the second device can connect to the third device as TCP clients.

[0122] Step 340: upon receiving a remote service access request from the user side, establish a second connection with the target bridge, send an access service instruction to the third device, and the third device forwards the access service instruction to the second device.

[0123] In some embodiments, when the first device receives a remote service access request from the user side, it establishes a second connection with the target bridge and sends an access service instruction to the third device. For example, the first device monitors the user side (such as a TCP client) by accessing 192.168.1.222: <clientport>, while establishing a first connection with the first device, establish a second connection with the target bridge (for example, establish 222.222.222.222 with the target bridge: <bridgeport>A TCP connection is established), and an access service instruction is sent to a third device. The access service instruction may include a first access service identifier, such as matchId1.

[0124] Step 350: The second device establishes a third connection with the target network bridge, and sends a matching connection instruction to the target network bridge through the third connection.

[0125] In actual execution, after receiving the access service instruction forwarded by the third device, the second device can confirm whether it is the first device that applies for the access service based on the service ID information in the access service instruction. In the case that it is the first device that applies for the access service, the second device, as a TCP client, establishes a third connection with the target bridge (for example, establishes a 222.222.222.222: <bridgeport>TCP connection), and sends a matching connection instruction (0x06) to the target bridge through a third connection. The matching connection instruction may include a second access service identifier, such as matchId2.

[0126] Step 360: When the target bridge matches the connection instruction and the access service instruction, the target bridge connects the second connection and the third connection to establish a target connection from the user side to the remote server via the first device, the target bridge, and the second device.

[0127] In actual execution, after receiving the matching connection instruction sent by the second device through the third connection, the target bridge can determine whether the matching connection instruction matches the access service instruction based on the first access service identifier in the access service instruction and the second access service identifier in the matching connection instruction. In some embodiments, it can be determined whether the first access service identifier in the access service instruction and the second access service identifier in the matching connection instruction are the same. If they are the same, it is determined that the access service instruction and the matching connection instruction match. On the contrary, if they are not the same, it is determined that the access service instruction and the matching connection instruction do not match.

[0128] In some embodiments, after the target bridge connects the second connection and the third connection and the first device connects the first connection and the second connection to establish a target connection from the user side, through the first device, the target bridge, and the second device to the remote server, the target bridge can send an access service instruction and a matching connection instruction matching success instruction (0x07) to the first device and the second device, and the second device can establish a fourth connection with the remote server based on the received matching success instruction, and connect the target connection and the fourth connection.

[0129] In actual execution, after the second device receives the successful matching instruction, it can establish a fourth connection with the remote server and connect the target connection and the fourth connection to establish a connection between the user side and the remote server accessed by the remote service through the target connection and the fourth connection.

[0130] In some embodiments, Figure 5 As shown, the user side accessing the first device sends communication data to the first device through the first connection, and the first device sends it to the target bridge (Bridge) through the second connection. The target bridge sends the communication data to the second device through the third connection, and the second device sends the communication data to the fourth device (i.e., the remote server) through the fourth connection.

[0131] In some embodiments, after accessing the remote service through the second device based on the target connection, the first device may send a release service instruction (0x09) to the target bridge to cause the target bridge to disconnect the target connection.

[0132] In actual implementation, after accessing the remote service through the second device based on the target connection, the first device can send a service release instruction to the target bridge after receiving an instruction from the user side to terminate access to the remote service through the target connection, or can send a service release instruction to the target bridge after the first connection between the user side and the first device fails.

[0133] In some embodiments, after a target connection is established from the user side, through the first device and the target bridge, to the second device through the target bridge, so that the first device accesses the remote service through the second device based on the target connection, the second device can send a service deregistration instruction (0x0A) to the third device and the target bridge, so that the third device deletes the information of the remote service, and the target bridge performs an exit operation.

[0134] In some embodiments, the service deregistration instruction may include information about the remote service to be deregistered and information about the target connection where the remote service is located. After receiving the service deregistration instruction sent by the second device, the target bridge deletes the information about the remote service to be deregistered in the service deregistration instruction and disconnects the target connection.

[0135] According to the method for accessing remote services in the embodiment of the present application, after establishing the target connection, a fourth connection with the remote service is established, and the target connection and the fourth connection are connected, so that the first device accesses the remote service through the second device, and achieves the purpose of communicating with the device remotely accessed by the second device. And the way in which the first device accesses the remote service through the second device accurately limits the scope of the first device's access and operation of the device remotely accessed by the second device, so as to reduce the security risk of the first device accessing the device remotely accessed by the second device.

[0136] The embodiment of the present application also provides a platform for accessing remote services.

[0137] like Figure 5 As shown, the system 500 for accessing remote services includes a first device 510, a second device 520, and a third device 530; the first device 510 and the second device 520 are both in communication connection with the third device 530; the second device 520 can access the remote service of the remote server;

[0138] The first device 510 is used to send a service application instruction to the second device 520 through the third device 530; the service application instruction is used to apply for access to a remote service;

[0139] The second device 520 is used to send an instruction to start the bridge to the third device 530 after confirming the existence of the remote service, so that the third device 530 starts the target bridge;

[0140] The first device 510 is also used to establish a target connection from the user side, through the first device 510, the target bridge, the second device 520 and the third device 530 to the remote service end when receiving a remote service access request from the user side, so that the first device 510 can access the remote service based on the target connection.

[0141] According to the system for accessing remote services of the present application, by sending an application service instruction for applying for access to remote services to a third device, so that the third device forwards the application service instruction to the second device, the third device responds to the start bridge instruction sent by the second device, starts the target bridge, and establishes a target connection from the user side, through the first device and the target bridge, to the second device through the target bridge. Based on the target connection, the remote service is accessed through the second device, thereby allowing the first device to access the remote service through the second device in the same public network, thereby achieving the purpose of communicating with the remote service end remotely accessed by the second device.

[0142] In some embodiments, after the target bridge is started, the first device 510 is also used to receive bridge connection information sent by the target bridge to connect to the target bridge based on the bridge connection information; the bridge connection information includes: the listening port of the target bridge based on the requested service; the number of listening ports corresponds to the number of requested services.

[0143] In some embodiments, after the first device 510 receives the bridge connection information sent by the target bridge, it is also used to feedback the access port to the user side, and the number of access ports is the same as the number of listening ports; the access port is used by the user side to send a service access request to the first device 510 based on the port.

[0144] In some embodiments, the first device 510 is used to establish a second connection with the target bridge upon receiving a remote service access request, and send an access service instruction to the second device 520 through the third device 530; the second device 520 is used to receive the access service instruction issued by the first device 510 forwarded by the third device 530, and establish a third connection with the target bridge according to the access service instruction; the target bridge connects the second connection and the third connection and sends a match success instruction to the first device 510 and the second device 520 to establish the target connection; the match success instruction is used to connect the first connection and the second connection; the first connection is the connection between the user side and the first device 510.

[0145] In some embodiments, the target bridge is used to receive an access service instruction issued by the first device 510 and a matching connection instruction sent by the second device 520 through a third connection; when the matching connection instruction and the access service instruction match, the target bridge connects the second connection and the third connection.

[0146] In some embodiments, the second device 520 is further configured to send a registration service instruction to the third device 530 so that the third device 530 stores the remote service information.

[0147] In some embodiments, the second device 520 is further used to receive a successful match instruction, establish a fourth connection with the remote server, and connect the third connection and the fourth connection.

[0148] In some embodiments, the first device 510 is further configured to send a release service instruction to the target bridge so that the target bridge disconnects the target connection.

[0149] In some embodiments, the second device 520 is further configured to send a service deregistration instruction to the third device 530 and the target bridge, so that the third device 530 deletes the remote service information and the target bridge performs an exit operation.

[0150] The platform for accessing remote services in the embodiment of the present application can be deployed in an electronic device, or it can be a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0151] The platform for accessing remote services in the embodiments of the present application may be a device having an operating system. The operating system may be a Microsoft (Windows) operating system, an Android (Android) operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.

[0152] The system 500 for accessing remote services provided in the embodiment of the present application can achieve Figures 2 to 4 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0153] In some embodiments, Figure 6 As shown, an embodiment of the present application also provides an electronic device 600, including a processor 601, a memory 602, and a computer program stored in the memory 602 and executable on the processor 601. When the program is executed by the processor 601, each process of the above-mentioned method embodiment for accessing remote services is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0154] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0155] An embodiment of the present application also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned method embodiment for accessing remote services can be implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0156] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0157] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned method for accessing remote services when executed by a processor.

[0158] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0159] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment for accessing remote services, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0160] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0161] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0162] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0163] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

[0164] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0165] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.< / bridgeport> < / bridgeport> < / clientport>

Claims

1. A method for accessing a remote service, characterized in that: Applicable to a system including a first device, a second device and a third device; the first device and the second device are both in communication connection with the third device; the second device can access a remote service of a remote server; the method includes: The first device sends a service application instruction to the second device through the third device; the service application instruction is used to apply for access to a remote service; After confirming that the remote service exists, the second device sends an instruction to start the bridge to the third device, so that the third device starts the target bridge; When the first device receives a remote service access request from the user side, it establishes a target connection from the user side, through the target bridge, the second device and the third device, via the first device, the target bridge, the second device to the remote service end, so that the first device can access the remote service based on the target connection.

2. The method for accessing remote services according to claim 1, characterized in that: After the target bridge is started, it also includes: The first device receives the bridge connection information sent by the target bridge to connect to the target bridge based on the bridge connection information; The bridge connection information includes: the listening port of the target bridge based on the requested service; the number of the listening ports corresponds to the number of the requested services.

3. The method for accessing remote services according to claim 2, characterized in that: After the first device receives the bridge connection information sent by the target bridge, it also includes: feeding back access ports to the user side, the number of access ports is the same as the number of listening ports; the access port is used by the user side to send a service access request to the first device based on the port.

4. The method for accessing remote services according to claim 1, characterized in that: When the first device receives the remote service access request from the user side, the first device establishes a target connection from the user side, through the first device, the target bridge, and the second device to the remote service end through the target bridge, including: When receiving the remote service access request, the first device establishes a second connection with the target bridge and sends an access service instruction to the second device through the third device; The second device receives the access service instruction sent by the first device and forwarded by the third device, and establishes a third connection with the target bridge according to the access service instruction; The target bridge connects the second connection and the third connection and sends a match success instruction to the first device and the second device to establish the target connection; the match success instruction is used to connect the first connection and the second connection; the first connection is the connection between the user side and the first device.

5. The method for accessing remote services according to claim 4, characterized in that: The target bridge connects the second connection and the third connection, including: The second device sends a matching connection instruction to the target bridge through the third connection; The target bridge receives the access service instruction sent by the first device and the matching connection instruction sent by the second device through the third connection; The target bridge connects the second connection and the third connection when the matching connection instruction and the access service instruction match.

6. The method for accessing remote services according to claim 1, characterized in that: Before the first device sends a service application instruction to the second device through the third device, the method includes: The second device sends a registration service instruction to the third device, so that the third device stores the information of the remote service.

7. The method for accessing remote services according to claim 4, characterized in that: After the target bridge connects the second connection and the third connection and sends a matching success instruction to the first device and the second device, the method further includes: The second device receives the successful matching instruction, establishes a fourth connection with the remote server, and connects the third connection and the fourth connection.

8. The method for accessing remote services according to any one of claims 1 to 5, characterized in that: When the first device receives a remote service access request from the user side, the method further includes establishing a target connection from the user side, through the first device, the target bridge, the second device and the third device, to the remote service end, so that the first device accesses the remote service based on the target connection: The first device sends a release service instruction to the target bridge, so that the target bridge disconnects the target connection.

9. The method for accessing remote services according to any one of claims 1 to 5, characterized in that: When the first device receives a remote service access request from the user side, the method further includes establishing a target connection from the user side, through the first device, the target bridge, the second device and the third device, to the remote service end, so that the first device accesses the remote service based on the target connection: The second device sends a deregistration service instruction to the third device and the target bridge, so that the third device deletes the information of the remote service and the target bridge performs an exit operation.

10. A system for accessing remote services, characterized in that: The device comprises a first device, a second device and a third device; the first device and the second device are both in communication connection with the third device; the second device can access a remote service of a remote server; The first device is used to send a service application instruction to the second device through the third device; the service application instruction is used to apply for access to a remote service; The second device is configured to send an instruction to start the network bridge to the third device after confirming that the remote service exists, so that the third device starts the target network bridge; The first device is also used to establish a target connection from the user side, through the first device, the target bridge, the second device and the third device to the remote service end, when receiving a remote service access request from the user side, so that the first device can access the remote service based on the target connection.