Method for establishing VNC connection with remote server and related product

By receiving virtual IP addresses and VNC accounts, analyzing and connecting to target remote servers, the management complexity and cost of multiple servers in the prior art is solved, and more efficient user connection and server management is achieved.

CN119011645APending Publication Date: 2024-11-22TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310568309.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-18
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When the prior art supports more than 100 users to connect to a remote server, it is difficult to manage multiple remote servers, resulting in increased server node management complexity and cost.

Method used

By receiving the virtual IP address, target VNC account and VNC password, the IP address of the target remote server associated with the virtual IP address is parsed out, and VNC remote connection is created after successful login, which reduces the user's dependence on the specific server IP address and simplifies the Server node management.

Benefits of technology

It effectively reduces the complexity and management cost of server node management, supports more user connections, and avoids the trouble caused by confusion and changes in server IP address management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011645A_ABST
    Figure CN119011645A_ABST
Patent Text Reader

Abstract

The invention discloses a method for establishing VNC connection with a remote server and a related product. The method comprises the following steps: firstly, receiving a virtual IP address, a target VNC account and a VNC password provided by target equipment through a VNC client; then based on the virtual IP address and the target VNC account number, analyzing an IP address of a target remote server associated with the virtual IP address and allocated to the target VNC account number; and finally, based on the IP address of the target remote server, creating VNC remote connection with the target remote server for the target equipment. Visibly, a unified virtual IP address is established in the application, so that the IP address of the specific remote server can be obtained by combining the virtual IP address with the VNC account of the user for analysis. Thus, the user can perform remote connection without knowing the distributed specific remote server IP address, thereby reducing the complexity of server node management and reducing the management cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method for establishing a VNC connection with a remote server and related products. Background Art

[0002] VNC (Virtual Network Computing) is a remote desktop protocol that provides network remote control services. With the continuous development of the Internet, remote work is becoming more and more popular, and more and more people use remote connection to cloud servers for remote work. In some usage scenarios, such as the use of virtual desktops, there will be a need for multiple people to remotely connect to the server through VNC, that is, multiple people remotely connect to the same remote server at the same time for development, so that multiple people can share data and facilitate development.

[0003] At present, for the scenario of establishing a connection with a remote server through VNC, it is difficult to support more than 100 users to connect to one remote server due to the limitation of the number of VNC ports. In order to solve the above problem, in the related art, it is proposed to use multiple remote servers to support the connection of more users. Although multiple remote servers can support the connection of more users, it is easy to cause the problem of chaotic management of server nodes, resulting in an increase in management costs.

[0004] Therefore, how to reduce the complexity of server node management and reduce the management cost of server nodes has become a technical problem that needs to be solved urgently in the current field. Summary of the invention

[0005] The embodiments of the present application provide a method and related products for establishing a VNC connection with a remote server, aiming to reduce the complexity of managing server nodes and reduce the management cost of server nodes.

[0006] The first aspect of the present application provides a method for establishing a VNC connection with a remote server, comprising:

[0007] Receive the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client;

[0008] Based on the virtual IP address and the target VNC account, an IP address of a target remote server associated with the virtual IP address and allocated to the target VNC account is parsed; the target remote server is installed with a VNC server;

[0009] When it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client, a VNC remote connection with the target remote server is created for the target device based on the IP address of the target remote server.

[0010] A second aspect of the present application provides a device for establishing a VNC connection with a remote server, comprising:

[0011] A receiving unit, used to receive a virtual IP address, a target VNC account and a VNC password provided by a target device through a VNC client;

[0012] A parsing unit, configured to parse out an IP address of a target remote server associated with the virtual IP address and allocated to the target VNC account based on the virtual IP address and the target VNC account; the target remote server is installed with a VNC server;

[0013] The connection unit is used to create a VNC remote connection between the target device and the target remote server based on the IP address of the target remote server when it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client.

[0014] A third aspect of the present application provides a computer device, the device comprising a processor and a memory:

[0015] The memory is used to store program code and transmit the program code to the processor;

[0016] The processor is used to execute the steps of the method for establishing a VNC connection with a remote server provided in the first aspect according to the instructions in the program code.

[0017] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the steps of the method for establishing a VNC connection with a remote server provided in the first aspect.

[0018] The fifth aspect of the present application provides a computer program product, including a computer program or instructions, which, when executed by a computer device, implements the steps of the method for establishing a VNC connection with a remote server provided in the first aspect.

[0019] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0020] In the technical solution of the present application, the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client are first received, and then based on the virtual IP address and the target VNC account, the IP address of the target remote server associated with the virtual IP address and assigned to the target VNC account is parsed, wherein the target remote server is installed with a VNC server, and finally, when it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client, based on the IP address of the target remote server, a VNC remote connection with the target remote server is created for the target device. It can be seen that a unified virtual IP address is established in the present application, so that the specific remote server IP address can be obtained by parsing the virtual IP address in combination with the user's VNC account. In this way, the user can make a remote connection without knowing the specific remote server IP address assigned, thereby reducing the complexity of server node management and reducing management costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A scenario architecture diagram of a method for establishing a VNC connection with a remote server provided in an embodiment of the present application;

[0022] Figure 2 A schematic diagram of a connection of a virtual IP in a method for establishing a VNC connection with a remote server provided in an embodiment of the present application;

[0023] Figure 3 An overall flow chart of a method for establishing a VNC connection with a remote server provided in an embodiment of the present application;

[0024] Figure 4 A flowchart of a method for establishing a VNC connection with a remote server provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of the connection between a server node and a user in the method for establishing a VNC connection with a remote server provided in an embodiment of the present application;

[0026] Figure 6 A flowchart of allocating a remote server in different situations in the method for establishing a VNC connection with a remote server provided in an embodiment of the present application;

[0027] Figure 7 A schematic diagram of a connection for synchronizing data between a server node and a remote server in a method for establishing a VNC connection with a remote server provided in an embodiment of the present application;

[0028] Figure 8 A schematic diagram of the structure of an apparatus for establishing a VNC connection with a remote server provided in an embodiment of the present application;

[0029] Fig. 9 A schematic diagram of the structure of the server in the embodiment of the present application;

[0030] Fig.10 A schematic diagram of the structure of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0032] First, the terms that may be involved in the embodiments of the present application are explained below.

[0033] VNC (Virtual Network Computing): Virtual Network Computer.

[0034] With the continuous development of the Internet, remote work is becoming more and more popular, and more and more people use remote connection to cloud servers for remote work. In some usage scenarios, such as virtual desktop usage scenarios, due to data sharing and development convenience, there will be a demand for multiple people to remotely connect to the server through VNC, that is, multiple people remotely connect to the same remote server at the same time for development. In general, a VNC server will be installed on the remote server so that users can remotely connect to the remote server through the VNC client on the terminal device.

[0035] At present, for the scenario of establishing a connection with a remote server through VNC, it is difficult to support more than 100 users to connect to one remote server due to the limitation of the number of VNC ports. In order to solve the above problem, in the related art, it is proposed to use multiple remote servers to support the connection of more users. Although multiple remote servers can support the connection of more users, it is easy to cause the problem of chaotic management of server nodes, resulting in an increase in management costs.

[0036] For example, currently, when connecting to a remote server through VNC, only 100 users can be connected, and the port numbers are only 5900-5999. If the number of users exceeds 100, VNC ports cannot be allocated to the extra users. Therefore, in the related art, it is proposed to use multiple remote servers to support user connections when the number of users exceeds 100. At this time, the developer needs to record multiple login node IPs, which easily leads to confusion in node management.

[0037] Therefore, how to reduce the complexity of server node management and reduce the management cost of server nodes has become a technical problem that needs to be solved urgently in the current field.

[0038] In view of the above problems, a method and related products for establishing a VNC connection with a remote server are provided in the present application, the purpose of which is to reduce the complexity of server node management. In the technical solution provided in the present application, the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client are first received, and then based on the virtual IP address and the target VNC account, the IP address of the target remote server associated with the virtual IP address and assigned to the target VNC account is parsed, wherein the target remote server is installed with a VNC server, and finally when it is determined according to the VNC password that the target VNC account is successfully logged in on the VNC client, based on the IP address of the target remote server, a VNC remote connection with the target remote server is created for the target device. It can be seen that a unified virtual IP address is established in the present application, so as to obtain the specific remote server IP address through the virtual IP address combined with the user's VNC account parsing. In this way, the user can make a remote connection without knowing the specific remote server IP address assigned, thereby reducing the complexity of server node management and reducing management costs.

[0039] The execution subject of the method for establishing a VNC connection with a remote server provided in the embodiment of the present application can be a server, that is, the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client can be received on the server. Therefore, the implementation subject of the technical solution of the present application is not limited in the embodiment of the present application.

[0040] Figure 1 The following is a scenario diagram of a method for establishing a VNC connection with a remote server, which includes a server and various terminal devices. Figure 1 The server shown can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. In addition, the server can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0041] See also Figure 2 , Figure 2 A schematic diagram of a connection of a virtual IP in a method for establishing a VNC connection with a remote server provided in an embodiment of the present application, such as Figure 2 As shown:

[0042] In the technical solution of the present application, in order to facilitate users to log in remotely, the present application integrates multiple remote servers together, and on this basis establishes a virtual IP address, and associates the virtual IP address with the IP address of the real remote server. In other words, all users only need to know this one virtual IP address, and there will be multiple remote servers corresponding to the virtual IP address, such as: remote server 1, remote server 2, remote server n, etc. When the user makes a remote connection, he only needs to enter the virtual IP, and the background server will assign the user to the IP address of a specific remote server according to the virtual IP, and then make a remote connection. In this way, the user does not need to know the specific IP address, which not only ensures the security of the user's server IP address, but also avoids the trouble of server node management caused by the change of the remote server IP address.

[0043] Next, combine Figure 3 The technical solution of this application is introduced. Figure 3 , Figure 3 The overall flow chart of the method for establishing a VNC connection with a remote server provided in the embodiment of the present application is as follows: Figure 3 As shown:

[0044] In the technical solution of the present application, when a user needs to make a remote connection, he first needs to enter the virtual IP address, target VNC account and VNC password in the VNC client of the target device to log in remotely, and then query whether the target VNC account exists according to the target VNC account. If the target VNC account exists, the specific IP address of the target remote server is obtained according to the virtual IP address, and when the VNC password is verified, the VNC remote connection is made with the target device based on the specific IP address of the target remote server. It should be noted that if the target VNC account does not exist and / or the VNC password verification fails, the words "Login failed" are displayed.

[0045] Figure 4 A flowchart of a method for establishing a VNC connection with a remote server provided in an embodiment of the present application. Figure 4 The method for establishing a VNC connection with a remote server includes:

[0046] S401: Receive the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client.

[0047] In the related art, for the scenario of establishing a connection with a remote server through VNC, it is difficult to support more than 100 users to connect to one remote server due to the limitation of the number of VNC ports. In order to solve the above problem, in the related art, it is proposed to use multiple remote servers to support the connection of more users. Although multiple remote servers can support the connection of more users, it is easy to cause the problem of chaotic management of server nodes, resulting in an increase in management costs.

[0048] In view of this, in the technical solution provided by the present application, the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client are first received, and then based on the virtual IP address and the target VNC account, the IP address of the target remote server associated with the virtual IP address and assigned to the target VNC account is parsed, wherein the target remote server is installed with a VNC server, and finally, when it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client, based on the IP address of the target remote server, a VNC remote connection with the target remote server is created for the target device. It can be seen that a unified virtual IP address is established in the present application, so that the IP address of the specific remote server can be obtained by parsing the virtual IP address in combination with the user's VNC account. In this way, the user can make a remote connection without knowing the specific remote server IP address assigned, thereby reducing the complexity of server node management and reducing management costs.

[0049] Specifically, in this step, when the user needs to connect to the remote server, the user only needs to fill in the virtual IP address, target VNC account and VNC password through the VNC client on the target device. In this way, the specific IP address of the remote server can be obtained based on the virtual IP address and the target VNC account in the subsequent process.

[0050] It should be noted that in this application, the collection and processing of relevant data such as the target VNC account and VNC password should be strictly in accordance with the requirements of relevant national laws and regulations when applied in instances, and the informed consent or separate consent of the personal information subject should be obtained, and subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.

[0051] S402: Based on the virtual IP address and the target VNC account, parse out the IP address of the target remote server associated with the virtual IP address and allocated to the target VNC account.

[0052] In this step, a VNC client is installed in the target device, and a VNC server is installed in the target remote server, so that the target device can perform a VNC remote connection with the target remote server. Among them, the VNC remote connection adopts the RFB protocol for data transmission. Currently, the commonly used VNC servers include TurboVNC, tigerVNC, and realVNC. The commonly used VNC clients include noVNC, but the VNC server has a limitation of only being able to set up 100 connection accounts at most. In step S401, the virtual IP address, target VNC account, and VNC password provided by the target device through the VNC client have been received. At present, it is necessary to parse the virtual IP address and the target VNC account to obtain the IP address of the target remote server associated with the virtual IP address and assigned to the target VNC account. In this way, the situation where developers manage multiple IP addresses is avoided.

[0053] In an achievable implementation, after receiving the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client, it will first query whether the target VNC account entered by the user is a VNC account that has been associated with the virtual IP address. If the target VNC account is a VNC account that has been associated with the virtual IP address, the remote server associated with the virtual IP address will be queried based on the VNC account, and then the IP address of the target remote server assigned to the target VNC account will be determined from the remote servers associated with the virtual IP address based on the recorded allocation relationship between the remote server and the VNC account, so as to remotely connect to the target device based on the IP address of the target remote server in the subsequent process. It should be noted that if the target VNC account is not a VNC account that has been associated with the virtual IP address, the step of "querying the remote server associated with the virtual IP address based on the VNC account" will not be performed.

[0054] S403: When it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client, a VNC remote connection with the target remote server is created for the target device based on the IP address of the target remote server.

[0055] As mentioned above, if the target VNC account is a VNC account that has been associated with a virtual IP address and the remote server associated with the virtual IP is determined, the IP address of the target remote server assigned to the target VNC account is determined from the remote servers associated with the virtual IP address. In this step, after determining the IP address of the target remote server, verify whether the VNC password entered by the user is correct. If the VNC password entered by the user is correct, that is, the target VNC account is successfully logged in to the VNC client based on the VNC password, then a VNC remote connection is made with the target device based on the IP address of the target remote server obtained in the previous step. It should be noted that if the VNC password verification is wrong, the step of "creating a VNC remote connection with the target remote server for the target device based on the IP address of the target remote server" will not be executed.

[0056] Next, combine Figure 5 This section introduces the server node distribution of this application. Figure 5 , Figure 5 A schematic diagram of the connection between a server node and a user in the method for establishing a VNC connection with a remote server provided in an embodiment of the present application, such as Figure 5 As shown:

[0057] In an embodiment of the present application, a virtual IP address can connect to multiple remote servers, such as remote server 1, remote server 2, etc., and each remote server can allow access to 100 users, such as remote server 1 connecting to user 1-user 100, remote server 2 connecting to user 101-user 200, etc., for remote connection. In order to facilitate users to log in remotely, when integrating remote servers to establish virtual IP addresses, historical remote connection data can be obtained, so that according to the historical remote connection data, it can be understood how many users have made remote connections, and then the number of remote servers that need to be integrated can be determined based on the number of historical user connections. As an example, the historical remote connection data includes 200 users who have made remote connections, so the number of remote servers that need to be integrated is 2.

[0058] See also Figure 6 , Figure 6 A flowchart of allocating a remote server in different situations in the method for establishing a VNC connection with a remote server provided in an embodiment of the present application, such as Figure 6 As shown:

[0059] After the user enters the VNC account, VNC password and virtual IP address in the VNC client of the target device, it will be determined whether the VNC account of the user is a VNC account associated with the virtual IP address, and whether the number of users who have made remote connections exceeds the preset number, which includes the number of users who can access the integrated remote server. If the VNC account of the user is not a VNC account associated with the virtual IP address, and the number of users who have made remote connections does not exceed the preset number, that is, the remote server is sufficient, the IP address of the remote server is allocated to the user, and a corresponding VNC account and VNC password are created for the user, and then a VNC remote connection is made; if the VNC account of the user is not a VNC account associated with the virtual IP address, and the number of users who have made remote connections exceeds the preset number, that is, the remote server is insufficient, a new remote server is expanded for the user, and the new remote server is associated with the virtual IP address, and then a corresponding VNC account and VNC password are created for the user to make a VNC remote connection.

[0060] It should be noted that if the user's VNC account is a VNC account associated with the virtual IP address, and the number of users who have made remote connections does not exceed the preset number, the VNC password entered is verified to be correct. If the VNC password entered by the user is correct, a VNC remote connection is made to the target device based on the IP address of the target remote server; if the user's VNC account is a VNC account associated with the virtual IP address, and the number of users who have made remote connections exceeds the preset number, a VNC remote connection is made to the target device based on the IP address of the newly expanded remote server.

[0061] Next, the allocation of remote servers in the case where there are enough remote servers and when there are not enough remote servers is specifically introduced. Specifically, when a user needs to make a VNC remote connection, first determine whether the VNC account entered by the user is a VNC account that has been associated with the virtual IP address. If the VNC account entered by the user is not a VNC account that has been associated with the virtual IP address, it proves that a new user needs to make a VNC remote connection. At this time, the new user is associated with the virtual IP address. Then, a remote server is allocated to the new user from the remote servers associated with the virtual IP address, and a corresponding VNC account and VNC password are created for the new user in the remote server. And the VNC account created for the new user is automatically associated with the virtual IP address, and the allocation relationship between the created VNC account and the remote server allocated to the new user is recorded. In this way, when there are enough remote servers, it is possible to allocate remote servers to users at any time for VNC remote connection.

[0062] As an example, the number of remote servers to be integrated is 2, and there are 50 users who have connected to the VNC remote server. Now the 51st user is connected, and the user is a new user. At this time, the background will allocate a remote server from the integrated remote servers to the new user, create a VNC account and VNC password for the new user, and associate the created VNC account with the virtual IP address so that the user can connect to the VNC remote server. It should be noted that the allocated remote server can be the remote server that has connected 50 users.

[0063] As another example, the number of remote servers to be integrated is 2, and there are already 100 users who have made VNC remote connections. Now the 101st user is connected, and the user is a new user. At this time, the background will allocate a remote server from the integrated remote servers to the new user, create a VNC account and VNC password for the new user, and associate the created VNC account with the virtual IP address so that the user can make a VNC remote connection. It should be noted that the allocated remote server can be another remote server that is not connected to the user.

[0064] In the above process, the allocation of remote servers to users when there are enough remote servers has been introduced in detail. Next, the expansion of new remote servers to allocate remote servers to users when there are not enough remote servers will be introduced. Since the VNC server has a limit of only 100 connection accounts, and all remote servers associated with the virtual IP address have been allocated. At this time, when a new user needs to make a VNC remote connection, a new remote server needs to be expanded. After obtaining the new remote server, the new remote server is associated with the virtual IP address, and the new remote server is allocated to the new user. A corresponding VNC account and VNC password are also created for the new user on the new remote server for VNC remote connection.

[0065] As an example, the number of remote servers to be integrated is 2, and there are already 200 users making VNC remote connections. Now the 201st user is connected, and this user is a new user. At this time, the background will re-expand a new remote server for the new user and associate the new remote server with the virtual IP address to assign the new remote server to the new user.

[0066] In a feasible implementation, before creating a corresponding VNC account for a new user, a Linux account will also be created for the new user in the remote server assigned to the new user, and the new user will be simulated to log in to the Linux account to create a corresponding VNC account for the new user. It should be noted that in the present application, user account management is performed through LDAP (directory service) so that data can be shared among various remote servers. That is to say, after creating a Linux account, a Linux directory is created to manage the Linux account under the Linux directory. Among them, LDAP (directory service) is an open Internet standard that supports cross-platform Internet protocols. For its use, only a simple configuration of LDAP is required to interact with the server for authentication. In this way, the cost of repeated development and docking can be greatly reduced.

[0067] Furthermore, after creating a VNC account for a new user, the Linux account and VNC account data created for the new user are synchronized to the remote server assigned to the new user. When the user needs to modify the account data of the user associated with the virtual IP address, the modified account data is first saved locally, and then synchronized to the remote server corresponding to the account, wherein the account data of the user associated with the virtual IP address includes the Linux user name.

[0068] In addition, in the related art, the expansion and contraction of multiple remote servers is also difficult to achieve the destruction of remote servers because the data information of users is managed independently and the data information is not synchronized among multiple remote servers. It is understandable that since the data information of users is not synchronized and users are scattered and connected to multiple remote servers, as long as there are users using the remote server, the remote server cannot be directly destroyed. It is necessary to migrate the user data to another remote server before destroying it.

[0069] In view of this, the present application proposes to synchronously store the account data of the user associated with the virtual IP address. Figure 7 This article introduces the data synchronization storage between server nodes in this application. Figure 7 , Figure 7 A schematic diagram of a connection for synchronizing data between a server node and a remote server in a method for establishing a VNC connection with a remote server provided in an embodiment of the present application, such as Figure 7 As shown:

[0070] In view of the troublesome management between multiple remote servers, in this application, the virtual IP connects remote server 1 and remote server 2, remote server 1 connects users 1-user 100, and remote server 2 connects users 101-user 200, and user 1 data, user 100 data, user 101 data, user 200 data, etc. corresponding to user 1, user 100, user 101, user 200, etc., are all stored in the file storage system. In other words, the account data of the user associated with the virtual IP address is stored in the file storage system, and the file storage system is mounted in all remote servers associated with the virtual IP address, wherein the account data of all users (user 1 data, user 100 data, user 101 data, user 200 data, etc.) is circulated in the file storage system.

[0071] When one or more existing remote servers need to be destroyed, since the account data related to the remote servers that need to be destroyed has been retained in the file storage system, at this time, the remote servers can be directly destroyed. In this way, since all account data is stored in the file storage system, and the file storage system will be mounted in all remote servers, the account information of all users will be synchronized to all remote servers. When the number of users is small and the remote servers need to be reduced, the user's account information has been retained and the remote servers can be directly destroyed. It can be seen that the user's account information is not affected by the increase or decrease of remote servers, and the background automatically manages the expansion of remote server nodes, reducing manual management costs. It should be noted that the file storage system can be CFS (Cloud File Storage), which is not specifically limited here.

[0072] And in this application, it is set that the user information of each user is stored in the directory corresponding to the user's Linux name in the file storage system, that is to say, the user can only access the user data in this directory. In this way, the account information of all users is isolated, thereby ensuring the security of the account information.

[0073] As an example, there are 2 remote servers and 101 users for VNC remote connection, where the first 100 users are connected to the first remote server, the 101st user is connected to the second remote server, and the account data of the 101st user has been stored in the file storage system. At this time, the 101st user and the 100th user disconnect the remote connection, and the second remote server connected to the 101st user is destroyed. When the 101st user needs to reconnect to the remote server, since the account data of the 101st user is stored in the file storage system, the 101st user can be directly connected to the first remote server, and then the previously stored account data can be used. In this way, it is extremely convenient to destroy the remote server and reconnect to the remote server remotely.

[0074] Based on the method for establishing a VNC connection with a remote server provided in the above embodiment, the present application also provides a device for establishing a VNC connection with a remote server. Figure 8 Provide explanation. Figure 8 A schematic diagram of the structure of the device for establishing a VNC connection with a remote server provided in an embodiment of the present application. Figure 8 The device shown for establishing a VNC connection with a remote server includes:

[0075] The receiving unit 801 is used to receive the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client;

[0076] The parsing unit 802 is used to parse out the IP address of the target remote server associated with the virtual IP address and allocated to the target VNC account based on the virtual IP address and the target VNC account; the target remote server is installed with a VNC server;

[0077] The connection unit 803 is configured to create a VNC remote connection between the target device and the target remote server based on the IP address of the target remote server when it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client.

[0078] Optionally, the parsing unit 802 is specifically configured to:

[0079] Query whether the target VNC account is a VNC account associated with the virtual IP address;

[0080] If yes, query the remote server associated with the virtual IP address;

[0081] According to the recorded allocation relationship between the remote server and the VNC account, the IP address of the target remote server allocated to the target VNC account is determined from the remote servers associated with the virtual IP address.

[0082] Optionally, the device further comprises:

[0083] An associating unit, configured to associate the virtual IP address with the new user when it is determined that a new user needs to make a VNC remote connection;

[0084] an allocating unit, configured to allocate a remote server to the new user from the remote servers associated with the virtual IP address;

[0085] A creating unit, used to create a corresponding VNC account and VNC password for the new user through the remote server allocated to the new user;

[0086] The recording unit is used to automatically associate the VNC account created for the new user with the virtual IP address, and record the allocation relationship between the created VNC account and the remote server allocated to the new user.

[0087] Optionally, the allocation unit is specifically used to:

[0088] When the remote servers associated with the virtual IP address cannot support the VNC remote connection assigned to the new user due to the limitation of the number of VNC ports, a new remote server is expanded;

[0089] Associating the new remote server with the virtual IP address;

[0090] The new remote server is assigned to the new user.

[0091] Optionally, the creation unit is specifically used to:

[0092] Creating a Linux account for the new user through the remote server assigned to the new user;

[0093] The new user is simulated to log in to the Linux account, so as to create a corresponding VNC account for the new user.

[0094] Optionally, the device further comprises:

[0095] A synchronization unit, used for synchronizing the relevant data of the Linux account and the VNC account created for the new user to the remote server allocated for the new user;

[0096] The storage unit is used to locally store the modified account data when the account data of the user associated with the virtual IP address is modified, and synchronize the modified account data to the remote server corresponding to the account.

[0097] Optionally, the device further comprises:

[0098] A mounting unit is used to store the account data of the user associated with the virtual IP address in a file storage system, and the file storage system is uniformly mounted in all remote servers associated with the virtual IP address; when one or more existing remote servers need to be destroyed, the account data related to the remote servers to be destroyed are still retained in the file storage system.

[0099] The following introduces the structure of computer equipment in server form and terminal device form respectively.

[0100] Fig. 9 : This is a schematic diagram of a server structure provided in an embodiment of the present application. The server 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 922 (for example, one or more processors) and a memory 932, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 942 or data 944. Among them, the memory 932 and the storage medium 930 can be short-term storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 922 can be configured to communicate with the storage medium 930 and execute a series of instruction operations in the storage medium 930 on the server 900.

[0101] The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input and output interfaces 958, and / or one or more operating systems 941, such as Windows Server 2000. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.

[0102] The CPU 922 is used to execute the following steps:

[0103] Receive the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client;

[0104] Based on the virtual IP address and the target VNC account, an IP address of a target remote server associated with the virtual IP address and allocated to the target VNC account is parsed; the target remote server is installed with a VNC server;

[0105] When it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client, a VNC remote connection with the target remote server is created for the target device based on the IP address of the target remote server.

[0106] The present application also provides another computer device, such as Fig.10 For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The terminal can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (English full name: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (English full name: Point of Sales, English abbreviation: POS), a car computer, etc., taking the terminal as a mobile phone as an example:

[0107] Fig.10 FIG. 1 is a block diagram showing a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Fig.10 The mobile phone includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. Those skilled in the art can understand that Fig.10 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0108] Combine the following Fig.10 A detailed introduction to the various components of the mobile phone:

[0109] The RF circuit 1010 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1080 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1010 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (full name: LowNoiseAmplifier, English abbreviation: LNA), a duplexer, etc. In addition, the RF circuit 1010 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to Global System of Mobile communications (Global System of Mobile communication, English abbreviation: GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, English abbreviation: CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, English abbreviation: LTE), e-mail, Short Messaging Service (SMS), etc.

[0110] The memory 1020 can be used to store software programs and modules. The processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020. The memory 1020 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1020 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0111] The input unit 1030 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1031 or near the touch panel 1031 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1031 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1031, the input unit 1030 may further include other input devices 1032. Specifically, the other input devices 1032 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0112] The display unit 1040 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041. Optionally, the display panel 1041 may be configured in the form of a liquid crystal display (full name in English: Liquid Crystal Display, English abbreviation: LCD), an organic light-emitting diode (full name in English: Organic Light-Emitting Diode, English abbreviation: OLED), etc. Further, the touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event. Subsequently, the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in Fig.10 In the embodiment, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the mobile phone.

[0113] The mobile phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0114] The audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the mobile phone. The audio circuit 1060 can transmit the received audio data to the speaker 1061 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.

[0115] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1070. It provides users with wireless broadband Internet access. Fig.10 A WiFi module 1070 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.

[0116] The processor 1080 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 1020, and calling data stored in the memory 1020, it executes various functions of the mobile phone and processes data, thereby collecting overall data and information of the mobile phone. Optionally, the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1080.

[0117] The mobile phone also includes a power supply 1090 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.

[0118] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0119] In the embodiment of the present application, the processor 1080 included in the terminal also has the following functions:

[0120] Provide the user with a VNC client so that the user can enter the virtual IP address, target VNC account and VNC password through the VNC client.

[0121] An embodiment of the present application also provides a computer-readable storage medium for storing program code, wherein the program code is used to execute any one of the implementation methods of establishing a VNC connection with a remote server described in the aforementioned embodiments.

[0122] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any one of the implementations of the method for establishing a VNC connection with a remote server described in the aforementioned embodiments.

[0123] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0124] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the system is only a logical function division. There may be other division methods in actual implementation, such as multiple systems can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0125] The systems described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0126] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0128] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for establishing a VNC connection with a remote server, characterized in that: include: Receive the virtual IP address, target VNC account and VNC password provided by the target device through the VNC client; Based on the virtual IP address and the target VNC account, an IP address of a target remote server associated with the virtual IP address and allocated to the target VNC account is parsed; the target remote server is installed with a VNC server; When it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client, a VNC remote connection with the target remote server is created for the target device based on the IP address of the target remote server.

2. The method according to claim 1, characterized in that The step of resolving the IP address of the target remote server associated with the virtual IP address and allocated to the target VNC account based on the virtual IP address and the target VNC account specifically includes: Query whether the target VNC account is a VNC account associated with the virtual IP address; If yes, query the remote server associated with the virtual IP address; According to the recorded allocation relationship between the remote server and the VNC account, the IP address of the target remote server allocated to the target VNC account is determined from the remote servers associated with the virtual IP address.

3. The method according to claim 1, characterized in that: The method further comprises: When it is determined that a new user needs to make a VNC remote connection, associating the virtual IP address with the new user; Allocating a remote server to the new user from the remote servers associated with the virtual IP address; Creating a corresponding VNC account and VNC password for the new user through the remote server assigned to the new user; The VNC account created for the new user is automatically associated with the virtual IP address, and the allocation relationship between the created VNC account and the remote server allocated to the new user is recorded.

4. The method according to claim 3, characterized in that The allocating a remote server to the new user from the remote servers associated with the virtual IP address specifically includes: When the remote servers associated with the virtual IP address cannot support the VNC remote connection assigned to the new user due to the limitation of the number of VNC ports, a new remote server is expanded; Associating the new remote server with the virtual IP address; The new remote server is assigned to the new user.

5. The method according to claim 3 or 4, characterized in that: The step of creating a corresponding VNC account for the new user through the remote server allocated to the new user specifically includes: Creating a Linux account for the new user through the remote server assigned to the new user; The new user is simulated to log in to the Linux account, so as to create a corresponding VNC account for the new user.

6. The method according to claim 5, characterized in that Also includes: Synchronize the relevant data of the Linux account and VNC account created for the new user to the remote server allocated for the new user; When the account data of the user associated with the virtual IP address is modified, the modified account data is saved locally and synchronized to the remote server corresponding to the account.

7. The method according to claim 6, characterized in that The account data of the user associated with the virtual IP address is stored in a file storage system, and the file storage system is uniformly mounted in all remote servers associated with the virtual IP address; when one or more existing remote servers need to be destroyed, the account data related to the remote servers to be destroyed are still retained in the file storage system.

8. A device for establishing a VNC connection with a remote server, characterized in that: include: A receiving unit, used to receive a virtual IP address, a target VNC account and a VNC password provided by a target device through a VNC client; A parsing unit, configured to parse out an IP address of a target remote server associated with the virtual IP address and allocated to the target VNC account based on the virtual IP address and the target VNC account; the target remote server is installed with a VNC server; The connection unit is used to create a VNC remote connection between the target device and the target remote server based on the IP address of the target remote server when it is determined according to the VNC password that the target VNC account has successfully logged in to the VNC client.

9. A computer device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the steps of the method for establishing a VNC connection with a remote server according to any one of claims 1 to 7 according to the instructions in the program code.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the steps of the method for establishing a VNC connection with a remote server as described in any one of claims 1 to 7.

11. A computer program product, characterized in that The method comprises a computer program or an instruction, which, when executed by a computer device, implements the steps of the method for establishing a VNC connection with a remote server as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Automatic connection management system and management method for VNC session

    CN120034533A

  • An automatic connection management system and management method for VNC sessions

    CN120034533B