CN111049710A - Method and device for accessing server - Google Patents

Method and device for accessing server Download PDF

Info

Publication number
CN111049710A
CN111049710A CN201911143634.1A CN201911143634A CN111049710A CN 111049710 A CN111049710 A CN 111049710A CN 201911143634 A CN201911143634 A CN 201911143634A CN 111049710 A CN111049710 A CN 111049710A
Authority
CN
China
Prior art keywords
server
terminal
target
accessing
information
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.)
Pending
Application number
CN201911143634.1A
Other languages
Chinese (zh)
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology Co 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201911143634.1A priority Critical patent/CN111049710A/en
Publication of CN111049710A publication Critical patent/CN111049710A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method and a device for accessing a server. The method applied to the access server at the first server side comprises the following steps: receiving position information sent by a terminal, wherein the position information is the position information of the current position of the terminal; determining a target server in the area of the current position of the terminal according to the position information; and accessing the target server to acquire the target data through the target server and sending the acquired target data to the terminal. In the embodiment of the invention, the first server can determine the target server in the area of the current position according to the position information of the current position sent by the terminal and automatically access the target server to acquire the required data through the target server, so that the target data is acquired through the nearby server, the network security and the server load capacity are guaranteed, the use of user data flow can be reduced, and the manual server access operation of a user is avoided.

Description

Method and device for accessing server
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for accessing a server.
Background
In the prior art, when a server is deployed, the server is usually deployed in different regions to improve the security and the load capacity of the whole network. Sometimes, when a user goes from one area to another area, the client on the terminal still obtains network resources through the server in the former area, which reduces the security of the network and the load capacity of the server and increases the use of user data traffic.
Disclosure of Invention
Embodiments of the present invention have been made in view of the above problems, and in order to provide a method of accessing a server and a corresponding apparatus of accessing a server, which overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a method for accessing a server, which is applied to a first server, and the method for accessing the server includes:
receiving position information sent by a terminal, wherein the position information is the position information of the current position of the terminal;
determining a target server in the area of the current position of the terminal according to the position information;
and accessing the target server to acquire target data through the target server and sending the acquired target data to the terminal.
In order to solve the above problem, an embodiment of the present invention discloses a method for accessing a server, which is applied to a terminal, and the method for accessing the server includes:
acquiring position information, wherein the position information is the position information of the current position of the terminal;
and sending the position information to a first server so that the first server determines a target server in the area where the current position of the terminal is located according to the position information, accesses the target server to acquire target data through the target server, and sends the acquired target data to the terminal.
In order to solve the above problem, an embodiment of the present invention discloses an apparatus for accessing a server, which is applied to a first server, and includes:
the terminal comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving position information sent by a terminal, and the position information is the position information of the current position of the terminal;
the determining module is used for determining a target server in the area where the current position of the terminal is located according to the position information received by the receiving module;
and the access module is used for accessing the target server determined by the determination module so as to acquire target data through the target server and send the acquired target data to the terminal.
In order to solve the above problem, an embodiment of the present invention discloses an apparatus for accessing a server, which is applied to a terminal, and the apparatus for accessing the server includes:
the acquisition module is used for acquiring position information, wherein the position information is the position information of the current position of the terminal;
and the sending module is used for sending the position information acquired by the acquiring module to a first server so that the first server determines a target server in the area where the current position of the terminal is located according to the position information, accesses the target server, acquires target data through the target server and sends the acquired target data to the terminal.
In order to solve the above problem, an embodiment of the present invention discloses a device for accessing a server, including:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus of the access server to perform the above-described method applied to the access server on the first server side.
In order to solve the above problem, an embodiment of the present invention discloses a computer-readable storage medium storing a computer program for causing a processor to execute the above method applied to an access server on a first server side.
In order to solve the above problem, an embodiment of the present invention discloses a device for accessing a server, including:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus of the access server to perform the above-described method applied to an access server at a terminal side.
In order to solve the above problem, an embodiment of the present invention discloses a computer-readable storage medium storing a computer program for causing a processor to execute the above method applied to an access server on a terminal side.
The embodiment of the invention at least comprises the following advantages:
in the embodiment of the invention, the first server can determine the target server in the area where the current position is located according to the position information of the current position sent by the terminal and automatically access the target server to acquire the required data through the target server, so that the target data is acquired through the nearby server, the data flow of a user can be reduced, the operation of manually executing server access by the user can be avoided, and the use of the user is facilitated.
Drawings
Fig. 1 is a schematic flowchart of a method applied to an access server on a first server side according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating sub-steps of step 102 provided by an embodiment of the present invention;
FIG. 3 is a flow chart illustrating the sub-steps of step 103 according to an embodiment of the present invention;
FIG. 4 is a schematic flow diagram of an example provided by an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method applied to an access server on a terminal side according to an embodiment of the present invention;
fig. 6 is a block diagram of an apparatus applied to an access server on a first server side according to an embodiment of the present invention;
fig. 7 is a block diagram of an apparatus applied to an access server on a terminal side according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The embodiment of the invention mainly comprises the steps that the first server determines the target server in the area where the current position is located according to the position information of the current position of the terminal and automatically accesses the target server to acquire the required data through the target server, so that the target data are acquired through the nearby server, the network safety and the server load capacity are guaranteed, the use of user data flow can be reduced, and the manual server access operation of a user is avoided.
According to an aspect of the embodiments of the present invention, a method for accessing a server is provided, which is applied to a first server. The first server may be an application server, and the application server may provide local resources, and may also access the internet to obtain internet resources, or access the video network to obtain video network resources. For example, if the application software is a handheld application software (i.e., a P-Server), the first Server is a handheld background Server, and when a user uses the handheld application software to perform a video conference, the handheld background Server may access the streaming media Server to obtain conference video data through the internet or the video network. Wherein, the streaming media server is correspondingly a target server.
As shown in fig. 1, the method for accessing the server may include:
step 101: and receiving the position information sent by the terminal.
The location information described herein is location information of a current location of the terminal. In the embodiment of the present invention, the terminal may periodically acquire the location information of the current location of the terminal through a built-in GPS (Global Positioning System) module, and send the acquired location information to the first server.
Step 102: and determining a target server in the area of the current position of the terminal according to the received position information.
After receiving the location information sent by the terminal, the first server may determine an area where the current location of the terminal is located according to the location information, and then determine a target server in the area according to the area where the current location of the terminal is located.
The target server may be a server that needs to be accessed when acquiring target data other than the local data of the first server. The area can be a customized geographical area, such as a city a divided into four customized areas a, b, c and d according to actual needs, or an administrative area.
Step 103: and accessing the target server to acquire the target data through the target server and sending the target data to the terminal.
The first server accesses a target server after determining the target server in an area where the current position of the terminal is located, so that required data (namely target data) is acquired through the target server, and the acquired data is sent to the terminal.
In the embodiment of the invention, the first server can determine the target server in the area of the current position according to the position information of the current position sent by the terminal and automatically access the target server to acquire the required data through the target server, so that the target data is acquired through the nearby server, the network security and the server load capacity are guaranteed, the use of user data flow can be reduced, the manual server access operation of a user is avoided, and the use of the user is facilitated.
Optionally, in the embodiment of the present invention, the location information of the current location of the terminal is preferably latitude and longitude information, so that the obtained location information is more accurate.
When the location information of the current location of the terminal is latitude and longitude information, the step 102 may determine the target server in the area where the current location of the terminal is located according to the received location information, and the determining step may include the following sub-steps:
step 1021: and determining the area code corresponding to the latitude and longitude information according to the latitude and longitude information.
Step 1022: and determining the area where the current position of the terminal is located according to the area code.
Step 1023: and determining a target server in the area of the current position of the terminal.
In the embodiment of the invention, one area code corresponding to one longitude and latitude range can be set, so that after the longitude and latitude information is obtained, the longitude and latitude range in which the longitude and latitude information is located can be determined, then the corresponding area code is determined according to the corresponding relation between the longitude and latitude range and the area code, then the area in which the current position of the terminal is located is determined according to the area code, and finally the target server in the area is determined according to the area in which the current position of the terminal is located.
When the area is a self-defined area, the area code is a self-defined code; when the region is an administrative region, the region code is the national standard code of the administrative region.
Optionally, in this embodiment of the present invention, the location information of the current location of the terminal may also be address information, and determine, according to the address information, an area code corresponding to the address information; and then, according to the area code, determining the area where the current position of the terminal is located, and finally determining a target server in the area where the current position of the terminal is located.
Optionally, when the first server determines that the area where the current location of the terminal is located has a plurality of second servers (where the second servers are servers that can provide target data) according to the location information, in order to select an accessed target server from the plurality of second servers, an implementation manner may be: sending the searched information (such as name information) of the plurality of second servers to the terminal, displaying the information in a list form and the like on a display page of the terminal, and manually selecting an accessed target server by a user; another implementation may be: and acquiring the distance from each second server to the first server, and taking the second server closest to the first server as a target server.
Optionally, step 103, accessing the target server, may include the following sub-steps:
step 1031: the IP (Internet Protocol ) address information and port information of the access target server are acquired.
Step 1032: and accessing the target server according to the acquired IP address information and the port information.
The IP address is a uniform address format provided by the IP protocol, and it allocates a logical address to each network and each host on the internet, so as to mask the difference of physical addresses. The IP address is just like a telephone number (address code), and when the IP address has the telephone number of the other party, a call can be made with the other party, and similarly, when the IP address of a certain server has been provided, communication with the server is possible. Each server has a plurality of communication ports with different functions, so that the server can communicate with the server only by acquiring corresponding port information. Therefore, in the embodiment of the present invention, when accessing the target server, the IP address information and the port information for accessing the target server may be obtained first, and then the target server may be accessed according to the obtained IP address information and the obtained port information.
Optionally, in an application scenario of the embodiment of the present invention, the target server may be a streaming media server, and the target data may be streaming media data.
The streaming media data may include, but is not limited to: monitoring videos, online live videos, video conferences, and the like, and accordingly, the application scenes at this time may include but are not limited to: viewing surveillance videos, watching online live broadcasts, conducting video conferences and the like. Generally, the streaming media server may transmit the streaming media data to the first server through a video network or the internet.
Optionally, in another application scenario of the embodiment of the present invention, the target server may be a server (hereinafter referred to as a monitoring auxiliary server) for acquiring monitoring resource data from the monitoring platform, the target data may be the monitoring resource data, and the application scenario may be to view a monitoring video.
The monitoring platform described herein may be a video networking monitoring and networking management and scheduling system, and at this time, the target server may serve as a monitoring auxiliary server to obtain monitoring resource data (i.e., pull monitoring) from the video networking monitoring and networking management and scheduling system.
In order to better understand the above technical solution, the following is further explained by an example, as follows:
as shown in fig. 4, it is assumed that the first server is a palmtop backend server, the target server is a monitoring auxiliary server, and a palmtop application (hereinafter referred to as a palmtop client) is installed in the terminal.
As shown in fig. 4, the specific procedure of this example may include the following steps:
step 401: the palmtop client on the terminal is started and then proceeds to step 402.
Step 402: the terminal automatically obtains the latitude and longitude information of the current location of the terminal, and then proceeds to step 403.
Step 403: the terminal sends the acquired longitude and latitude information to the handheld background server, and then the step 404 is entered.
Step 404: the handheld communication background server determines an area code corresponding to the latitude and longitude information from the database according to the received latitude and longitude information, determines a monitoring auxiliary server in an area where the current position of the terminal is located according to the area code, and then enters step 405.
Step 405: the handheld background server accesses the monitoring auxiliary server according to the IP address information and the port information of the access target server, and then proceeds to step 406.
Step 406: the monitoring auxiliary server obtains monitoring resource data from the video networking monitoring networking management scheduling system, and then step 407 is entered.
Step 407: the monitoring auxiliary server sends the acquired monitoring resource data to the handheld background server, and then step 408 is performed.
Step 408: and the handheld communication background server sends the received monitoring resource data to the handheld communication client so that the user can check the monitoring video, and the process is finished.
The position information may be obtained once when the handheld client is started, and obtained at a fixed time after the handheld client is started, and the specific situation may be selected according to actual requirements, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, the first server can determine the target server in the area of the current position according to the position information of the current position sent by the terminal and automatically access the target server to acquire the required data through the target server, so that the target data is acquired through the nearby server, the network security and the server load capacity are guaranteed, the use of user data flow can be reduced, the manual server access operation of a user is avoided, and the use of the user is facilitated.
According to another aspect of the embodiments of the present invention, a method for accessing a server is provided, which is applied to a terminal.
As shown in fig. 5, the method for accessing the server may include:
step 501: position information is acquired.
Here, the location information is location information of a current location of the terminal. In the embodiment of the invention, the terminal can regularly acquire the position information of the current position of the terminal through the built-in GPS module and send the acquired position information to the first server.
The first server described herein may be an application server, which may access the internet to obtain internet resources, or access the video network to obtain video network resources, in addition to providing local resources. For example, if the application software is a handheld application software (i.e., a P-Server), the first Server is a handheld background Server, and when a user uses the handheld application software to perform a video conference, the handheld background Server may access the streaming media Server to obtain a conference video through the internet or the video network. Wherein, the streaming media server is correspondingly a target server.
Step 502: and sending the position information to a first server so that the first server determines a target server in the area where the current position of the terminal is located according to the position information, accesses the target server to acquire target data through the target server, and sends the acquired target data to the terminal.
In the embodiment of the invention, after receiving the position information sent by the terminal, the first server can determine the area where the current position of the terminal is located according to the position information, and then determine the target server in the area according to the area where the current position of the terminal is located. The first server accesses a target server after determining the target server in an area where the current position of the terminal is located, so that required data (namely target data) is acquired through the target server, and the acquired data is sent to the terminal.
The target server may be a server that needs to be accessed when acquiring target data other than the local data of the first server. The area can be a customized geographical area, such as a city a divided into four customized areas a, b, c and d according to actual needs, or an administrative area.
Optionally, in the embodiment of the present invention, the user may further add, delete, modify, and view the information of the target server on the terminal, so that the user manages the information of the target server.
In the embodiment of the invention, the first server can determine the target server in the area of the current position according to the position information of the current position sent by the terminal and automatically access the target server to acquire the required data through the target server, so that the target data is acquired through the nearby server, the network security and the server load capacity are guaranteed, the use of user data flow can be reduced, the manual server access operation of a user is avoided, and the use of the user is facilitated.
It should be noted that, for simplicity of description, the two method embodiments are described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
According to another aspect of the embodiments of the present invention, there is provided an apparatus for accessing a server, which is applied to a first server. The device for accessing the server can realize all the details in the embodiment of the method applied to the first server and achieve the same technical effect.
As shown in fig. 6, the apparatus for accessing a server includes:
a receiving module 601, configured to receive location information sent by a terminal, where the location information is location information of a current location of the terminal.
A determining module 602, configured to determine, according to the location information received by the receiving module 601, a target server in an area where the current location of the terminal is located.
An accessing module 603, configured to access the target server determined by the determining module 602, so as to obtain target data through the target server, and send the obtained target data to the terminal.
Optionally, the location information is latitude and longitude information.
The determining module 602 includes:
and the first determining unit is used for determining the area code corresponding to the latitude and longitude information according to the latitude and longitude information.
And the second determining unit is used for determining the area where the current position of the terminal is located according to the area code determined by the first determining unit.
And the third determining unit is used for determining the target server in the area where the current position of the terminal is located.
Optionally, the access module 603 includes:
the acquisition unit is used for acquiring the IP address information and the port information of the access target server;
and the access unit is used for accessing the target server according to the IP address information and the port information acquired by the acquisition unit.
Optionally, the target server is a streaming media server, and the target data is streaming media data.
Optionally, the target server is a server for acquiring monitoring resource data from the monitoring platform, and the target data is the monitoring resource data.
The device for accessing the server in the embodiment of the invention can determine the target server in the area of the current position according to the position information of the current position sent by the terminal, and automatically access the target server to acquire the required data through the target server, so that the target data is acquired through the nearby server, the network security and the server load capacity are ensured, the use of user data flow can be reduced, the manual server access operation of a user is avoided, and the use of the user is facilitated.
According to another aspect of the embodiments of the present invention, an apparatus for accessing a server is provided, which is applied to a terminal. The device of the access server can realize all the details in the embodiment of the method applied to the access server at the terminal side, and can achieve the same technical effect.
As shown in fig. 7, the apparatus for accessing a server includes:
an obtaining module 701, configured to obtain location information, where the location information is location information of a current location of the terminal.
A sending module 702, configured to send the location information obtained by the obtaining module 701 to a first server, so that the first server determines, according to the location information, a target server in an area where the current location of the terminal is located, accesses the target server, obtains target data through the target server, and sends the obtained target data to the terminal.
The device for accessing the server can automatically determine the current position information of the terminal and send the position information to the first server, so that the first server determines the target server in the area where the current position is located according to the position information of the current position of the terminal and automatically accesses the target server, and therefore required data are acquired through the target server.
It should be noted that, for the two device embodiments, since they are basically similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
According to another aspect of the embodiments of the present invention, there is provided an apparatus for accessing a server, including: one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus of the access server to perform the above-described method applied to the access server on the first server side.
According to another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program for causing a processor to execute the above-described method applied to an access server on a first server side.
According to another aspect of the embodiments of the present invention, there is provided an apparatus for accessing a server, including:
one or more processors; and one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus of the access server to perform the above-described method applied to the access server at the terminal side.
According to another aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program for causing a processor to execute the above-described method applied to an access server on a terminal side.
Finally, it is to be noted that:
the embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
It should also be noted that:
in this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method for accessing a server and the device for accessing a server provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (16)

1. A method for accessing a server is applied to a first server, and is characterized in that the method for accessing the server comprises the following steps:
receiving position information sent by a terminal, wherein the position information is the position information of the current position of the terminal;
determining a target server in the area of the current position of the terminal according to the position information;
and accessing the target server to acquire target data through the target server and sending the acquired target data to the terminal.
2. The method of accessing a server of claim 1, wherein the location information is latitude and longitude information;
the step of determining the target server in the area where the current position of the terminal is located according to the position information includes:
determining an area code corresponding to the longitude and latitude information according to the longitude and latitude information;
determining the area where the current position of the terminal is located according to the area code;
and determining a target server in the area of the current position of the terminal.
3. The method of accessing a server according to claim 1, wherein the step of accessing the target server comprises:
acquiring IP address information and port information of the access target server;
and accessing the target server according to the IP address information and the port information.
4. The method of accessing a server according to claim 1, wherein the target server is a streaming server and the target data is streaming data.
5. The method for accessing the server according to claim 1, wherein the target server is a server for obtaining monitoring resource data from a monitoring platform, and the target data is the monitoring resource data.
6. A method for accessing a server is applied to a terminal, and comprises the following steps:
acquiring position information, wherein the position information is the position information of the current position of the terminal;
and sending the position information to a first server so that the first server determines a target server in the area where the current position of the terminal is located according to the position information, accesses the target server to acquire target data through the target server, and sends the acquired target data to the terminal.
7. An apparatus for accessing a server, applied to a first server, the apparatus for accessing the server comprising:
the terminal comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving position information sent by a terminal, and the position information is the position information of the current position of the terminal;
the determining module is used for determining a target server in the area where the current position of the terminal is located according to the position information received by the receiving module;
and the access module is used for accessing the target server determined by the determination module so as to acquire target data through the target server and send the acquired target data to the terminal.
8. The apparatus for accessing a server according to claim 7, wherein the location information is latitude and longitude information;
the determining module comprises:
the first determining unit is used for determining the area code corresponding to the latitude and longitude information according to the latitude and longitude information;
the second determining unit is used for determining the area where the current position of the terminal is located according to the area code determined by the first determining unit;
and the third determining unit is used for determining the target server in the area where the current position of the terminal is located.
9. The apparatus of the access server of claim 7, wherein the access module comprises:
the acquisition unit is used for acquiring the IP address information and the port information of the access target server;
and the access unit is used for accessing the target server according to the IP address information and the port information acquired by the acquisition unit.
10. The apparatus of claim 7, wherein the target server is a streaming server, and the target data is streaming data.
11. The apparatus of claim 7, wherein the target server is a server for obtaining monitoring resource data from a monitoring platform, and the target data is the monitoring resource data.
12. An apparatus for accessing a server, applied to a terminal, the apparatus for accessing the server comprising:
the acquisition module is used for acquiring position information, wherein the position information is the position information of the current position of the terminal;
and the sending module is used for sending the position information acquired by the acquiring module to a first server so that the first server determines a target server in the area where the current position of the terminal is located according to the position information, accesses the target server, acquires target data through the target server and sends the acquired target data to the terminal.
13. An apparatus for accessing a server, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus of the access server to perform one or more methods of accessing a server as recited in any of claims 1-5.
14. A computer-readable storage medium, characterized in that it stores a computer program causing a processor to execute the method of accessing a server according to any of claims 1 to 5.
15. An apparatus for accessing a server, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus of the access server to perform the method of the access server of claim 6.
16. A computer-readable storage medium storing a computer program for causing a processor to execute the method of accessing a server according to claim 6.
CN201911143634.1A 2019-11-20 2019-11-20 Method and device for accessing server Pending CN111049710A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911143634.1A CN111049710A (en) 2019-11-20 2019-11-20 Method and device for accessing server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911143634.1A CN111049710A (en) 2019-11-20 2019-11-20 Method and device for accessing server

Publications (1)

Publication Number Publication Date
CN111049710A true CN111049710A (en) 2020-04-21

Family

ID=70232491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911143634.1A Pending CN111049710A (en) 2019-11-20 2019-11-20 Method and device for accessing server

Country Status (1)

Country Link
CN (1) CN111049710A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153164A (en) * 2020-11-24 2020-12-29 长沙树根互联技术有限公司 Global Internet of things equipment access method, device, system and terminal equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333325A (en) * 2011-05-27 2012-01-25 迈普通信技术股份有限公司 Method and system for managing 3G access terminal based on real-time geographic information
CN105530684A (en) * 2014-09-28 2016-04-27 腾讯科技(深圳)有限公司 Method, device and system for network access
CN107360202A (en) * 2016-05-09 2017-11-17 腾讯科技(深圳)有限公司 The access scheduling method and device of a kind of terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333325A (en) * 2011-05-27 2012-01-25 迈普通信技术股份有限公司 Method and system for managing 3G access terminal based on real-time geographic information
CN105530684A (en) * 2014-09-28 2016-04-27 腾讯科技(深圳)有限公司 Method, device and system for network access
CN107360202A (en) * 2016-05-09 2017-11-17 腾讯科技(深圳)有限公司 The access scheduling method and device of a kind of terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153164A (en) * 2020-11-24 2020-12-29 长沙树根互联技术有限公司 Global Internet of things equipment access method, device, system and terminal equipment

Similar Documents

Publication Publication Date Title
CN104202396B (en) A kind of information sharing method, device, server, terminal device and system
US20170032188A1 (en) Photo sharing method and device
US8903953B2 (en) Event media file discovery
US10380748B2 (en) Method and apparatus for determining to-be-superimposed area of image, superimposing image and presenting picture
EP2819416A1 (en) Media sharing
CN103686591A (en) Method and system for acquiring position information
US20140295891A1 (en) Method, server and terminal for information interaction
CN114245182B (en) Live video stream acquisition method and device
US20210141824A1 (en) Geolocation restricted content registration and publication
CN111429091A (en) Resource allocation method and device, electronic equipment and storage medium
CN104540086A (en) Business card information transmission method and device
CN114866501B (en) Information sharing method and device
CN111431818A (en) Cross-domain request traffic distribution method and device, storage medium and computer equipment
CN117998150A (en) Method, device, equipment and storage medium for acquiring monitoring video data
CN111049710A (en) Method and device for accessing server
CN110149219B (en) Shooting equipment configuration method and device
CN113315984B (en) Cover display method, device, system, equipment and storage medium
CN111131777B (en) Viewing method and device for video network monitoring
CN111327666B (en) Service management method, device and system, computer equipment and storage medium
CN104765888A (en) Data access system, method and device
KR102225358B1 (en) Method and apparatus of determining tanning level
CN114302250B (en) Resource processing method, device, system, equipment and storage medium
CN111142684B (en) Information synchronization method for on-demand resources among multiple devices of distributed KVM display control system
CN108810043B (en) Method and device for storing comment information
CN111385596A (en) Live content isolation method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200421