CN113098990B - Server system, client and communication method for communication - Google Patents

Server system, client and communication method for communication Download PDF

Info

Publication number
CN113098990B
CN113098990B CN202110270161.2A CN202110270161A CN113098990B CN 113098990 B CN113098990 B CN 113098990B CN 202110270161 A CN202110270161 A CN 202110270161A CN 113098990 B CN113098990 B CN 113098990B
Authority
CN
China
Prior art keywords
server
instant messaging
private
address
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110270161.2A
Other languages
Chinese (zh)
Other versions
CN113098990A (en
Inventor
林皓
高曦
顾德仲
王睿
宋萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing VRV Software Corp Ltd
Original Assignee
Beijing VRV Software Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing VRV Software Corp Ltd filed Critical Beijing VRV Software Corp Ltd
Priority to CN202110270161.2A priority Critical patent/CN113098990B/en
Publication of CN113098990A publication Critical patent/CN113098990A/en
Application granted granted Critical
Publication of CN113098990B publication Critical patent/CN113098990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/48Message addressing, e.g. address format or anonymous messages, aliases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a server system, a client and a communication method for communication.A private instant messaging server, an intelligent addressing server and a transfer mapping server are arranged; after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server; mapping the current IP address and port to an external access address and an external access port; under the condition that the client sends the instant messaging connection request to the intelligent addressing server, the communication connection of the private instant messaging server of the internal local area network can be realized, even if communication is realized, the communication cannot be influenced under the condition that the IP address of the private instant messaging server changes, the risk that the conventional private instant messaging server, the fixed IP address or the fixed domain name address is detected and attacked by the Internet is solved and avoided, and the method is safer and more reliable.

Description

Server system, client and communication method for communication
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a server system, a client, and a communication method for communication.
Background
At present, enterprises and individuals pay more and more attention to protection of personal information, personal information left on cloud or the internet is reduced, private instant messaging servers are paid more and more attention to enterprises and personal families, and the current private instant messaging servers are generally realized in the following modes:
the method comprises the steps that in a first conventional mode, a private instant messaging server is built, the private instant messaging server is deployed in an enterprise machine room or a cloud space is purchased, a fixed public network IP address or an exclusive domain name address is applied, and an APP client accesses the instant messaging server through accessing the public network IP address or the domain name and communicates with other users. The private instant messaging server needs to expose a public network address, so that in order to ensure the stability of the server and the convenience of user access, the IP address or the domain name of the instant messaging server is generally not changed, the external address of instant messaging cannot be changed at any time, and the danger of long-time detection and attack exists; moreover, the fixed IP and domain name increase the operation cost and maintenance cost;
and in a conventional mode II, a private instant messaging server is built in an enterprise intranet environment, the enterprise intranet IP address is used as a server address, and the APP client accesses the server address through the intranet IP address in the enterprise intranet environment. When the instant messaging server leaves the internal environment of the enterprise, the APP client cannot access the intranet IP and communicate with the server if the instant messaging server is logged in, and the APP client can only indirectly access the internal network to access the server through access technologies such as a trigger jump machine or a VPN (virtual private network). Or the technology of server synchronization, database sharing and the like is realized through multiple servers, the technology is complex, and the cost is high.
And in a third conventional mode, a private server is purchased or used in cooperation with technologies such as a shared cloud or a private cloud, the cloud end needs to store part of user information of the server, and the instant messaging user information or part of information stores the cloud end, so that the danger of detection and leakage exists, and the privacy can not be really realized.
Therefore, how to provide a server scheme for communication can solve and avoid the risks of internet detection and attack of a conventional private instant messaging server, a fixed IP address or a fixed domain name address, and is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The invention provides a server system, a client and a communication method for communication, which can solve and avoid the risks of detection and attack of a conventional private instant messaging server, a fixed IP address or a fixed domain name address by the Internet, and are safe and reliable.
In a first aspect, the present invention provides a server system for communication, comprising: the system comprises a private instant messaging server, an intelligent addressing server and a transfer mapping server;
after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server;
the private instant messaging server sends the current IP address and the current port to the intelligent addressing server; the intelligent addressing server is in communication connection with the transfer mapping server;
the transit mapping server maps the current IP address and port of the private instant messaging server to an external access address and an external access port;
under the condition that a client sends an instant messaging connection request to the intelligent addressing server, the intelligent addressing server searches the external access address and the external access port corresponding to the private instant messaging server in the transfer mapping server and sends the external access address and the external access port to the client so that the client can establish communication connection with the private instant messaging server through the external access address and the external access port;
wherein, the private instant communication server is arranged in an internal local area network; the intelligent addressing server is a private cloud server with an internet access function; the intelligent addressing server is in communication connection with the transfer mapping server.
Further, the private instant messaging server further comprises: and the intranet access module is used for directly establishing communication connection with the client under the condition that the client is positioned in the internal local area network.
Further, the intranet access module is provided with a private Identity (ID); the client stores the private identification ID; and the client establishes communication connection with the intranet access module through the private identification ID.
Further, the intranet access module includes:
an ID changing unit for changing the current private identification ID;
and the ID sending unit is used for sending the changed current private identification ID to the client.
Further, the intelligent addressing server is provided with a fixed private Identity (ID);
the client stores the fixed private identification ID;
and the client sends an instant communication connection request to the intelligent addressing server through the fixed private identification ID.
Further, the private instant messaging server comprises: and the instant messaging service module is used for providing instant messaging service for the client through the service port.
Further, the transit mapping server includes:
the address transfer module is used for transferring the current IP address on the private instant messaging server into an external access address;
and the port mapping module is used for mapping the service port on the private instant messaging server into an external access port.
In a second aspect, an embodiment of the present invention provides a client, including:
the request sending module is used for sending an instant messaging connection request to the intelligent addressing server;
the address port receiving module is used for receiving an external access address and an external access port sent by the intelligent addressing server; the external access address and the external access port are addresses and ports which are searched by the intelligent addressing server in the transfer mapping server and correspond to the private instant messaging server;
and the communication establishing module is used for establishing communication connection with the private instant messaging server through the external access address and the external access port.
In a third aspect, the present invention provides a communication method for the server system, including:
after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server;
the private instant messaging server sends the current IP address and the current port to the intelligent addressing server; the intelligent addressing server is in communication connection with the transfer mapping server;
the transit mapping server maps the current IP address and the port of the private instant messaging server to an external access address and an external access port;
under the condition that a client sends an instant messaging connection request to the intelligent addressing server, the intelligent addressing server searches the external access address and the external access port corresponding to the private instant messaging server in the transfer mapping server and sends the external access address and the external access port to the client so that the client can establish communication connection with the private instant messaging server through the external access address and the external access port;
the private instant messaging server is arranged in an internal local area network; the intelligent addressing server is a private cloud server with an internet access function; the intelligent addressing server is in communication connection with the transfer mapping server.
In a fourth aspect, the present invention provides a communication method applied to the client, including:
sending an instant messaging connection request to the intelligent addressing server;
receiving an external access address and an external access port sent by the intelligent addressing server; the external access address and the external access port are addresses and ports which are searched by the intelligent addressing server in the transfer mapping server and correspond to the private instant messaging server;
and establishing communication connection with the private instant messaging server through the external access address and the external access port.
The invention provides a server system, a client and a communication method for communication.A private instant messaging server, an intelligent addressing server and a transfer mapping server are arranged; after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server; mapping the current IP address and port to an external access address and an external access port; under the condition that the client sends the instant messaging connection request to the intelligent addressing server, the communication connection of the private instant messaging server of the internal local area network can be realized, even if communication is realized, the communication cannot be influenced under the condition that the IP address of the private instant messaging server changes, the risk that the conventional private instant messaging server, the fixed IP address or the fixed domain name address is detected and attacked by the Internet is solved and avoided, and the method is safer and more reliable.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a server system for communication according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an intranet access module of a server system for communication according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating a configuration of a transfer mapping server of a server system for communication according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a client according to an embodiment of the present invention;
fig. 5 is a flowchart of a communication method for a server system according to an embodiment of the present invention;
fig. 6 is a flowchart of a communication method for a client according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A server system for communication of the present invention is described below with reference to fig. 1 to 3.
Fig. 1 is a schematic structural diagram of a server system for communication according to an embodiment of the present invention; fig. 2 is a schematic structural diagram of an intranet access module of a server system for communication according to an embodiment of the present invention; fig. 3 is a schematic structural diagram of a configuration of a transfer mapping server of a server system for communication according to an embodiment of the present invention.
In one embodiment of the present invention, the present invention provides a server system for communication, comprising: the system comprises a private instant messaging server, an intelligent addressing server and a transfer mapping server; after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server; the private instant messaging server sends the current IP address and the current port to the intelligent addressing server; the intelligent addressing server is in communication connection with the transfer mapping server; the transit mapping server maps the current IP address and the port of the private instant messaging server to an external access address and an external access port; under the condition that a client sends an instant messaging connection request to the intelligent addressing server, the intelligent addressing server searches the external access address and the external access port corresponding to the private instant messaging server in the transfer mapping server and sends the external access address and the external access port to the client so that the client can establish communication connection with the private instant messaging server through the external access address and the external access port; the private instant messaging server is arranged in an internal local area network; the intelligent addressing server is a private cloud server with an internet access function; the intelligent addressing server is in communication connection with the transfer mapping server.
As shown in fig. 1, as can be seen in fig. 1, the present embodiment includes four parts, namely, a server component S (private server component) of a private instant messaging server, a messaging component C (APP instant messaging component) of an APP client, an S1 (intelligent addressing service component) providing an intelligent addressing server, and an S2 (transit address port mapping component);
the private instant messaging server comprises a private server assembly and is deployed on the private instant messaging server, the private instant messaging server is deployed in an intranet environment, an internal C-type address is obtained, and after the private instant messaging server is started and networked, the private instant messaging server is actively connected with S1, and the address and the port which are open to the outside are mapped through S2 to be accessed by an external network APP user in an internet mode.
S1, an intelligent addressing service assembly (a functional module for realizing an intelligent addressing server) is deployed on a fixed private cloud server, can access the Internet and provides addressing services of a private instant messaging server and an APP client user; the private server component acquires an IP address outside an intranet after being started, sends a private server identifier to the S1, the S1 distributes a transfer address and a port of the private server through the S2 transfer mapping component, and the S is connected with the transfer server address and the port; s2, mapping the address and port of the external network access of the server at the same time to complete the access address and port of the private server to the external network.
A client user (a first client) in an external network environment accesses S1 through a private Identification (ID) number of a private server, S1 obtains an external access address and a port mapped by the private instant messaging server through S2, and sends C (the first client) to the external access address and the port, and the C (the first client) is connected with the external access address and the port, so that S2 completes connection and butt joint of S and C. Thus, the user of the first client of the external network can access the private instant messaging server of the internal network address.
S (private server component, which is a functional module for realizing private instant messaging server), when mapping the outer network address by addressing, opening the local inner network access address, the user of the second client end of the inner network environment, through the private identification ID of the private service, directly accessing the address of the inner network, namely directly communicating S (private server component, which is a functional module for realizing private instant messaging server), the inner network environment APP user, after the outer network environment APP user connects S (private server component, which is a functional module for realizing private instant messaging server), all instant messaging services can be carried out through S (private server component, which is a functional module for realizing private instant messaging server).
On the basis of the foregoing embodiment, in this embodiment, in order to enable the internal lan to connect to the private instant messaging server, an intranet access module may be further configured to directly establish a communication connection with the client when the client is located in the internal lan. Specifically, the intranet access module is provided with a private Identity (ID); the client stores the private identification ID; and the client establishes communication connection with the intranet access module through the private identification ID.
Of course, in practice, the private identity ID is not constant, and may be changed with each startup of the private instant messaging server, and therefore, the intranet access module may further set 210:
an ID changing unit 211 for changing the current private identification ID;
an ID sending unit 212, configured to send the changed current private identity ID to the client.
When the private instant messaging server is started, the current private Identity (ID) can be changed, certainly, the current private Identity (ID) can be changed at random at preset time intervals, so that the attack risk caused by the fixation of the private Identity (ID) is avoided, and after the private Identity (ID) is changed, the changed current private Identity (ID) can be actively sent to the client by the private instant messaging server so that the client can store the changed current private Identity (ID) and the subsequent access connection is facilitated.
For an external network, namely a client in the Internet environment, a fixed server is required to access, so that a fixed private identification ID can be set in an intelligent addressing server; the client stores the fixed private identification ID; and the client sends an instant communication connection request to the intelligent addressing server through the fixed private identification ID.
Further, to realize the instant messaging of the client, the private instant messaging server comprises: and the instant messaging service module is used for providing instant messaging service for the client through the service port. The relay mapping server 310 is provided with:
an address transfer module 311, configured to transfer the current IP address on the private instant messaging server to an external access address;
a port mapping module 312, configured to map a service port on the private instant messaging server as an external access port.
Therefore, the communication service port in the private instant messaging server can be mapped to the public network, that is, the intranet port of the private instant messaging server is mapped to a certain port on the public network, specifically, the transit mapping server has an intermediate server of a public network IP, the port of the private instant messaging server can be mapped to the service port of the transit mapping server, and at this time, the first client can access the service port of the transit mapping server, that is, the first client can access the service port of the private instant messaging server.
The embodiment of the invention can realize flexible communication of the private instant messaging server, can be deployed in enterprises or families, has flexible and variable address of the server, and can be powered off at any time and used in a plug-and-play mode when in use. The risk that a conventional private instant messaging server, a fixed IP address or a fixed domain name address is detected and attacked by the Internet is solved and avoided; all the user information is stored in the private instant messaging server, and no user information is stored and reserved in the network; all data are stored in a private instant messaging server of the intranet; the problem that partial user information exists in the cloud side in a cloud mode or an internet mode is solved and avoided, and the leakage risk of the internet layer is avoided; and can communicate intranet and extranet environment simultaneously, intranet and extranet APP user can not have the perception communication, need not to switch simple and practical. The complex intercommunication mode of the internal and external networks of the conventional private instant messaging server is improved and optimized.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a client according to an embodiment of the present invention.
In another embodiment of the present invention, an embodiment of the present invention provides a client 400, including:
a request sending module 410, configured to send an instant messaging connection request to the smart addressing server;
an address port receiving module 420, configured to receive an external access address and an external access port sent by the intelligent addressing server; the external access address and the external access port are addresses and ports which are searched by the intelligent addressing server in a transfer mapping server and correspond to the private instant messaging server;
a communication establishing module 430, configured to establish a communication connection with the private instant messaging server through the external access address and the external access port.
The following describes a communication method provided by the present invention, and the communication method described below and the server system and the client for communication described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a flowchart of a communication method for a server system according to an embodiment of the present invention.
In another embodiment, the present invention provides a communication method for the server system, including:
step 110: after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server;
step 120: the private instant messaging server sends the current IP address and the current port to the intelligent addressing server; the intelligent addressing server is in communication connection with the transfer mapping server;
step 130: the transit mapping server maps the current IP address and the port of the private instant messaging server to an external access address and an external access port;
step 140: under the condition that a client sends an instant messaging connection request to the intelligent addressing server, the intelligent addressing server searches the external access address and the external access port corresponding to the private instant messaging server in the transfer mapping server and sends the external access address and the external access port to the client so that the client can establish communication connection with the private instant messaging server through the external access address and the external access port;
the private instant messaging server is arranged in an internal local area network; the intelligent addressing server is a private cloud server with an internet access function; the intelligent addressing server is in communication connection with the transfer mapping server.
Fig. 6 is a flowchart of a communication method for a client according to an embodiment of the present invention.
In another embodiment of the present invention, the present invention provides a communication method, which is applied to the client and includes:
step 210: sending an instant messaging connection request to the intelligent addressing server;
step 220: receiving an external access address and an external access port sent by the intelligent addressing server; the external access address and the external access port are addresses and ports which are searched by the intelligent addressing server in the transfer mapping server and correspond to the private instant messaging server;
step 230: and establishing communication connection with the private instant messaging server through the external access address and the external access port.
The communication method provided by the embodiment of the invention is characterized in that a private instant messaging server, an intelligent addressing server and a transfer mapping server are arranged; after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server; mapping the current IP address and port to an external access address and an external access port; under the condition that the client sends the instant messaging connection request to the intelligent addressing server, the communication connection of the private instant messaging server of the internal local area network can be realized, even if communication is realized, the communication cannot be influenced under the condition that the IP address of the private instant messaging server changes, the risk that the conventional private instant messaging server, the fixed IP address or the fixed domain name address is detected and attacked by the Internet is solved and avoided, and the method is safer and more reliable.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor) 710, a communication Interface (Communications Interface) 720, a memory (memory) 730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform the communication method of the above embodiment, the method comprising: after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server; the private instant messaging server sends the current IP address and the current port to the intelligent addressing server; the intelligent addressing server is in communication connection with the transfer mapping server; the transit mapping server maps the current IP address and the port of the private instant messaging server to an external access address and an external access port; under the condition that a client sends an instant messaging connection request to the intelligent addressing server, the intelligent addressing server searches the external access address and the external access port corresponding to the private instant messaging server in the transfer mapping server and sends the external access address and the external access port to the client so that the client can establish communication connection with the private instant messaging server through the external access address and the external access port; the private instant messaging server is arranged in an internal local area network; the intelligent addressing server is a private cloud server with an internet access function; the intelligent addressing server is in communication connection with the transfer mapping server. Or the communication method comprises: sending an instant messaging connection request to the intelligent addressing server; receiving an external access address and an external access port sent by the intelligent addressing server; the external access address and the external access port are addresses and ports which are searched by the intelligent addressing server in the transfer mapping server and correspond to the private instant messaging server; and establishing communication connection with the private instant messaging server through the external access address and the external access port.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods of communication provided by the above methods to perform the above embodiments, the method comprising: after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server; the private instant messaging server sends the current IP address and the current port to the intelligent addressing server; the intelligent addressing server is in communication connection with the transfer mapping server; the transit mapping server maps the current IP address and port of the private instant messaging server to an external access address and an external access port; under the condition that a client sends an instant messaging connection request to the intelligent addressing server, the intelligent addressing server searches the external access address and the external access port corresponding to the private instant messaging server in the transfer mapping server and sends the external access address and the external access port to the client so that the client can establish communication connection with the private instant messaging server through the external access address and the external access port; wherein, the private instant communication server is arranged in an internal local area network; the intelligent addressing server is a private cloud server with an internet access function; the intelligent addressing server is in communication connection with the transfer mapping server. Or the communication method comprises: sending an instant messaging connection request to the intelligent addressing server; receiving an external access address and an external access port sent by the intelligent addressing server; the external access address and the external access port are addresses and ports which are searched by the intelligent addressing server in the transfer mapping server and correspond to the private instant messaging server; and establishing communication connection with the private instant messaging server through the external access address and the external access port.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the methods of communication provided in the above embodiments, the method comprising: after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a current port and establishes communication connection with the intelligent addressing server; the private instant messaging server sends the current IP address and the current port to the intelligent addressing server; the intelligent addressing server is in communication connection with the transfer mapping server; the transit mapping server maps the current IP address and the port of the private instant messaging server to an external access address and an external access port; under the condition that a client sends an instant messaging connection request to the intelligent addressing server, the intelligent addressing server searches the external access address and the external access port corresponding to the private instant messaging server in the transfer mapping server and sends the external access address and the external access port to the client so that the client can establish communication connection with the private instant messaging server through the external access address and the external access port; the private instant messaging server is arranged in an internal local area network; the intelligent addressing server is a private cloud server with an internet access function; the intelligent addressing server is in communication connection with the transfer mapping server. Or the communication method comprises: sending an instant messaging connection request to the intelligent addressing server; receiving an external access address and an external access port sent by the intelligent addressing server; the external access address and the external access port are addresses and ports which are searched by the intelligent addressing server in the transfer mapping server and correspond to the private instant messaging server; and establishing communication connection with the private instant messaging server through the external access address and the external access port.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (3)

1. A server system for communication, comprising: the system comprises a private instant messaging server, an intelligent addressing server and a transfer mapping server;
after the private instant messaging server is started, the private instant messaging server acquires a current IP address and a service port of instant messaging service, and establishes communication connection with the intelligent addressing server;
the private instant messaging server sends the current IP address and the service port to the intelligent addressing server; the intelligent addressing server is in communication connection with the transfer mapping server;
the transit mapping server maps the current IP address and the service port of the private instant messaging server to an external access address and an external access port;
under the condition that a client sends an instant messaging connection request to the intelligent addressing server, the intelligent addressing server searches the external access address and the external access port corresponding to the private instant messaging server in the transfer mapping server and sends the external access address and the external access port to the client so that the client can establish communication connection with the private instant messaging server through the external access address and the external access port;
the private instant messaging server is arranged in an internal local area network; the intelligent addressing server is a private cloud server with an internet access function; the intelligent addressing server is in communication connection with the transfer mapping server;
the private instant messaging server further comprises: the intranet access module is used for directly establishing communication connection with the client under the condition that the client is positioned in the internal local area network;
the intranet access module is provided with a private identification ID; the client stores the private identification ID; the client establishes communication connection with the intranet access module through the private identification ID;
the intranet access module comprises: an ID changing unit for changing the ID of the current private identification at preset time intervals; an ID sending unit, configured to send the changed current private identity ID to the client; the intelligent addressing server is provided with a fixed private identification ID; the client stores the fixed private identification ID; and the client sends an instant communication connection request to the intelligent addressing server through the fixed private identification ID.
2. The server system according to claim 1, wherein the private instant messaging server comprises: and the instant messaging service module is used for providing instant messaging service for the client through the service port.
3. The server system according to claim 1 or 2, wherein the transit mapping server includes:
the address transfer module is used for transferring the current IP address on the private instant messaging server into an external access address;
and the port mapping module is used for mapping the service port on the private instant messaging server into an external access port.
CN202110270161.2A 2021-03-12 2021-03-12 Server system, client and communication method for communication Active CN113098990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110270161.2A CN113098990B (en) 2021-03-12 2021-03-12 Server system, client and communication method for communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110270161.2A CN113098990B (en) 2021-03-12 2021-03-12 Server system, client and communication method for communication

Publications (2)

Publication Number Publication Date
CN113098990A CN113098990A (en) 2021-07-09
CN113098990B true CN113098990B (en) 2022-12-13

Family

ID=76667091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110270161.2A Active CN113098990B (en) 2021-03-12 2021-03-12 Server system, client and communication method for communication

Country Status (1)

Country Link
CN (1) CN113098990B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709163A (en) * 2021-08-30 2021-11-26 高维亮 Method and system for realizing remote operation of computer based on wireless terminal
CN113938466A (en) * 2021-12-16 2022-01-14 成都怡康科技有限公司 Method for automatically configuring local server IP address
CN114363418A (en) * 2022-01-07 2022-04-15 北京金山云网络技术有限公司 Method and device for accessing intranet database, storage medium and electronic equipment
CN114979350B (en) * 2022-04-26 2024-06-25 广州助蜂网络科技有限公司 Port mapping method and device based on mobile phone

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101617516A (en) * 2006-12-28 2009-12-30 意大利电信股份公司 Control client and have the method and apparatus of the application message between the server of private network address
CN105897940A (en) * 2014-10-16 2016-08-24 南京中科龙脉物联网技术有限公司 Intranet server port mapping and gateway dynamic IP address resolution method
EP3073677A1 (en) * 2015-03-23 2016-09-28 Ale International Configuration services for user terminals
CN106385471A (en) * 2016-10-21 2017-02-08 合肥哦走信息技术有限公司 Port mapping and gateway dynamic IP address resolution method for Internet of things
CN109889423A (en) * 2017-12-06 2019-06-14 腾讯科技(深圳)有限公司 A kind of message treatment method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101617516A (en) * 2006-12-28 2009-12-30 意大利电信股份公司 Control client and have the method and apparatus of the application message between the server of private network address
CN105897940A (en) * 2014-10-16 2016-08-24 南京中科龙脉物联网技术有限公司 Intranet server port mapping and gateway dynamic IP address resolution method
EP3073677A1 (en) * 2015-03-23 2016-09-28 Ale International Configuration services for user terminals
CN106385471A (en) * 2016-10-21 2017-02-08 合肥哦走信息技术有限公司 Port mapping and gateway dynamic IP address resolution method for Internet of things
CN109889423A (en) * 2017-12-06 2019-06-14 腾讯科技(深圳)有限公司 A kind of message treatment method, device and storage medium

Also Published As

Publication number Publication date
CN113098990A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
CN113098990B (en) Server system, client and communication method for communication
EP3361675B1 (en) Distributed load balancing system, health check method and service node
US9438679B2 (en) Method, apparatus, name server and system for establishing FCOE communication connection
EP2262185B1 (en) Method and system for forwarding data among private networks
US9264403B2 (en) Virtualization platform
US20060101026A1 (en) Communication model, signal, method, and device for confirming reachability in network where host reachability is accomplished by relating static identifier to dynamic address
US9883010B2 (en) Method, apparatus, device and system for generating DHCP snooping binding table
WO2015096737A1 (en) Method, apparatus and system for controlling auto-provisioning of network device
US20050229238A1 (en) Method and device to determine the network environment and configure a network gateway
CN107147580B (en) Tunnel establishment method and communication system
WO2015192563A1 (en) Method and device for implementing load balancing and load balancing service system
US20180227173A1 (en) Dynamic Network Awareness
KR101472685B1 (en) Network connection gateway, a network isolation method and a computer network system using such a gateway
CN113364741A (en) Application access method and proxy server
WO2023020606A1 (en) Method, system and apparatus for hiding source station, and device and storage medium
CN109450768B (en) Method for interconnecting containers and system for interconnecting containers
US9699139B2 (en) Communications system
CN113038594B (en) Network management registration method and device for MESH extended equipment
CN104253798A (en) Network security monitoring method and system
CN104579939B (en) Gateway protection method and device
US20120331154A1 (en) Method and apparatus of establishing a connection between devices using cached connection information
CN103516820B (en) Port mapping method and device based on MAC Address
CN115190042B (en) Network target range target access state detection system and method
CN113132218A (en) Home gateway access method, device, system processor and storage medium
CN110336793A (en) A kind of Intranet access method and relevant apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant