CN105657055A - Local area network equipment finding method and device oriented to WEB page - Google Patents
Local area network equipment finding method and device oriented to WEB page Download PDFInfo
- Publication number
- CN105657055A CN105657055A CN201610125637.2A CN201610125637A CN105657055A CN 105657055 A CN105657055 A CN 105657055A CN 201610125637 A CN201610125637 A CN 201610125637A CN 105657055 A CN105657055 A CN 105657055A
- Authority
- CN
- China
- Prior art keywords
- address
- terminal device
- terminal
- browser
- local area
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a local area network equipment finding method and device oriented to a WEB page. The method comprises the steps that a first network server receives a query request initiated by a browser of first terminal (such as a mobile phone) equipment; the first network server acquires the internal URL address of other second terminal (such as a set top box) equipment, corresponding to a public network IP address, in a local area network according to the public network IP address of the local area network where the first terminal (such as the mobile phone) equipment is located; the first network server sends a response message of the query request to the browser of the first terminal (such as the mobile phone) equipment, and the response message comprises the internal URL address of the second terminal (such as the set top box) equipment in the local area network. According to the technical scheme, the first terminal (such as the mobile phone) equipment can acquire the internal URL address of the second terminal (such as the set top box) equipment through the browser, and the browser can be used for having access to the terminal equipment through the URL address.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a local area network device discovery method and a related apparatus for WEB pages.
Background
In the prior art, local area network devices are typically discovered through an application software layer on the device operating system. The specific implementation process of the technology comprises the following steps: a certain device in the local area network sends broadcast or multicast messages in the local area network according to a certain communication protocol, other devices in the local area network monitor the messages through a specific interface, and then carry out analysis and interactive communication according to the corresponding communication protocol, so that the device in the local area network can acquire the local area network addresses of the other devices in the local area network to be accessed, wherein the broadcast or multicast messages are sent on the basis of a connectionless UDP packet in a transmission layer.
The technology needs to pre-install application layer software on the operating system of the current device, and can directly transmit and receive UDP packets through the operating system to realize the automatic discovery of the local area network device.
Disclosure of Invention
The embodiment of the invention provides a local area network equipment automatic discovery method facing a WEB page and a related device, wherein a user equipment can automatically acquire an internal URL (uniform resource locator) address (including an intranet IP address or a domain name, a file directory address, an access parameter and the like) of a target device through a browser. The browser for accessing the HTTP service transmits on the basis of TCP packets facing to the connection in a transmission layer.
An embodiment of the present invention provides a method for providing information in a local area network, including: a first network server receives a query request initiated by a browser of first terminal equipment; the first network server acquires internal URL addresses of other terminal equipment in the local area network corresponding to the public network IP address according to the public network IP address of the local area network where the first terminal equipment is located; the first network server sends a response message of the query request to the browser of the first terminal device, wherein the response message comprises: and internal URL addresses of other terminal equipment in the local area network.
Another embodiment of the present invention provides a device discovery method in a local area network, including: the browser of the terminal equipment downloads the WEB page program of the network server according to the address of the network server; the browser of the terminal equipment executes codes in a WEB page program to send a query request; the browser of the terminal equipment receives a response message of the query request, wherein the response message comprises: internal URL addresses of other terminal devices in a local area network where the terminal device is located; and the browser of the terminal equipment initiates a WEB connection request according to the internal URL address so as to establish connection with the terminal equipment corresponding to the internal URL address.
An embodiment of the present invention provides a network server, including: a first receiving unit, configured to receive a query request initiated by a browser of a first terminal device; the internal URL address acquisition unit is used for acquiring internal URL addresses of other terminal equipment in the local area network corresponding to the public network IP address according to the public network IP address of the local area network where the first terminal equipment is located; a sending unit, configured to send a response message to the query request to the browser of the first terminal device, where the response message includes: internal URL addresses of other terminal devices in the local area network; the first receiving unit, the internal URL address obtaining unit and the sending unit are located in a WEB server in a network server.
Another embodiment of the present invention provides a network system, including a first network server and a second network server, where the second network server is configured to provide a WEB page program to a browser of the first terminal device, and the WEB page program includes: a program for controlling the browser of the first terminal device to send out a query request; the first network server is used for receiving a query request initiated by a browser of the first terminal equipment; according to the public network IP address of the local area network where the first terminal device is located, obtaining internal URL addresses of other terminal devices in the local area network corresponding to the public network IP address; and sending a response message to the browser of the first terminal device, wherein the response message comprises internal URL addresses of other terminal devices in the local area network.
According to the embodiment of the invention, the query request initiated by the browser of the first terminal device is received, and the internal URL address of other terminal devices in the local area network carrying the first terminal device is sent to the first terminal device, so that the first terminal device can establish connection with another terminal device corresponding to the internal URL address by using the browser, and extra application software does not need to be installed on the operating system of the first terminal device in advance.
Drawings
Fig. 1 is a flowchart of a local area network information providing method using WEB page technology, which is described by taking a WEB server as an execution subject according to an embodiment of the present invention;
fig. 2 is a flowchart of a WEB-oriented local area network device discovery method described by taking a terminal device (e.g., a mobile phone) as an execution subject according to an embodiment of the present invention;
fig. 3 is a method for reporting an intranet IP address of a terminal device (such as a set-top box) according to an embodiment of the present invention;
fig. 4 is a flowchart of a specific local area network device discovery method for a WEB page according to an embodiment of the present invention;
FIG. 5 is a block diagram of a network server provided by an embodiment of the present invention;
fig. 6 is a block diagram of a network system provided by an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
Referring to fig. 1, an embodiment of the present invention provides a local area network information providing method using a WEB page technology, where a network server is used as an execution main body in the method, a first terminal device may be a mobile phone, a PC, a tablet, and other devices, and a mobile phone will be described later as an example, and a second terminal device may be a set-top box. The method comprises the following steps:
step 101, a first network server receives an inquiry request initiated by a browser of a first terminal device (for example, a mobile phone), wherein the inquiry request is used for requesting a URL address of a terminal device in a local area network where the first terminal device (for example, the mobile phone) is located. The step and subsequent steps 102 and 103 may be specifically executed by a WEB server on the first network server, where the step may be that the WEB server on the first network server receives, by using a WEB interface, a query request initiated by a browser of the first terminal (e.g., a mobile phone) device.
Before this step 101, a WEB server on a first network server may provide a WEB page program to a first terminal (e.g., a mobile phone) device by using a WEB interface, or a WEB server on another network server (e.g., a second network server) may provide a WEB page program to a first terminal (e.g., a mobile phone) device by using a WEB interface, where the WEB page program includes: and a program for controlling the browser of the first terminal (such as a mobile phone) to send the query request. The WEB page program may further include: and/or, controlling the browser of the first terminal (such as a mobile phone) device to store the program of the internal URL address which is successfully connected, and controlling the browser of the first terminal (such as a mobile phone) device to connect with the stored internal URL address when the first terminal (such as a mobile phone) device is not connected for the first time. The internal URL in this embodiment and the subsequent embodiments at least includes an intranet IP address of the terminal device in the local area network, and specifically, the internal URL includes the intranet IP address or a domain name, a file directory address, and may further include an access parameter, and the like.
Step 102, the first network server obtains a public network IP address of a local area network where a first terminal (for example, a mobile phone) device is located. Wherein the public network IP address is a public network IP address of the local area network.
Before step 101, the first terminal (e.g., a mobile phone) device establishes an HTTP connection with the first network server, and in this step, the first network server may call some interfaces to query according to the established HTTP connection, and how to obtain the public network IP address through the established HTTP connection is a relatively mature technology, which is not described herein again.
The query request is initiated by a browser of a first terminal (e.g., a mobile phone) device and forwarded to a first network server via a network device, in another embodiment, the query request is added to a public network IP address of a local area network by the network device when being forwarded by the network device, so that the query request carries the public network IP address when reaching the first network server, and in this step, the network server parses the public network IP address from the query request. Wherein, the network device may include at least one of a router, a switch, and a gateway.
And 103, the first network server acquires internal URL addresses of other terminal equipment in the local area network corresponding to the public network IP address according to the public network IP address of the local area network. The other terminal devices in the local area network are terminal devices in the local area network except the first terminal device, such as a set top box. The internal URL address is a URL address which can be accessed in the local area network, and the internal URL at least comprises intranet IP addresses of other terminal equipment in the local area network.
In the step, the first network server uses the public network IP address as an index to find the corresponding relation and obtains at least one URL address corresponding to the public network IP address, such as a URL address of a set-top box.
Step 104, the first network server sends a response message of the query request to the first terminal (e.g. mobile phone) device, where the response message includes: and the internal URL address of the terminal equipment in the local area network.
Wherein, the step may be that the WEB server in the first network server sends the response message through a WEB interface.
Prior to step 102, the method further comprises: the first network server receives an information packet, wherein the information packet comprises: the method comprises the steps that an intranet IP address of a second terminal (such as a set top box) device (called target device) is obtained, when a first network server receives an information packet, HTTP connection between the first network server and the second terminal (such as the set top box) device (called target device) is established, and the first network server obtains a public network IP address of a local area network where the second terminal (such as the set top box) device (called target device) is located according to the established HTTP connection; and storing the corresponding relation between the public network IP address and the URL address of the second terminal (such as a set-top box) device, wherein the URL address of the second terminal (such as the set-top box) device comprises the intranet IP address of the second terminal (such as the set-top box) device. In another embodiment, the packet is originated by the target device and forwarded through the network device, and when the packet is forwarded through the network device in the line, the network device automatically adds the public network IP address corresponding to the local area network to the packet, so that the subsequent first network server can establish the corresponding relationship between the public network IP address and the internal URL address thereof. In step 103, the first network server may use the public network IP address of the local area network where the first terminal (e.g., a mobile phone) device is located as an index to search for the internal URL address corresponding to the public network IP address. The network device may be a router or a switch, among others.
The URL address of the second terminal (e.g., set-top box) includes an intranet IP address, a file directory address, an access parameter, and the like of the second terminal (e.g., set-top box), and the file directory address is a logical address used for specifying a service on the device and is always determined for a specific task, so that the file directory address does not need to be periodically reported by the second terminal (e.g., set-top box). The first network server generates a URL address by using information such as an intranet IP address, a file directory address, an access parameter and the like reported by a second terminal (such as a set top box) device; in another implementation manner, the second terminal (e.g., a set-top box) device may also directly report the URL address, and the first network server stores the URL address directly reported by the second terminal (e.g., a set-top box) device.
A plurality of target devices share a public network IP address, and for example, a plurality of target devices in a home have a one-to-many correspondence relationship. Or, a cell uses a public network IP address, a plurality of families are provided in the cell, each family has a primary intranet IP address, and each terminal device in each family has a secondary intranet IP address.
In the embodiment of the invention, the first network server receives the query request initiated by the browser of the first terminal (such as a mobile phone) device by using the WEB interface, and sends the internal URL address of the terminal device in the local area network carrying the first terminal (such as the mobile phone) device to the first terminal (such as the mobile phone) device, so that the first terminal (such as the mobile phone) device can establish connection with another terminal device corresponding to the internal URL address by using the browser, and no additional application software needs to be pre-installed on the operating system of the first terminal (such as the mobile phone).
Referring to fig. 2, a second embodiment of the present invention provides a local area network device discovery method for a WEB page, where a terminal device is used as an execution main body, the terminal device may be a mobile phone, a PC, a tablet, and the like, and a description will be given later by taking a mobile phone as an example. The method comprises the following steps:
step 201, the browser of the terminal device (for example, a mobile phone) downloads the WEB page program of the network server according to the address of the network server.
The address of the network server is a URL address, which may be pre-stored on the terminal device or input by the user, and the URL address of the network server includes corresponding IP address information. And the terminal equipment is connected with the URL address and downloads a WEB page program of the network server.
Step 202, the browser of the terminal device (for example, a mobile phone) executes codes in the WEB page program to send a query request.
The WEB page program includes some programs, and the programs can control the browser to send a query request to the WEB server storing the corresponding relationship between the public network IP address and the internal URL address, where the WEB server storing the corresponding relationship between the public network IP address and the internal URL address may be the WEB server providing the WEB page program in step 201 or another WEB server, and the implementation of the present invention is not affected.
Step 203, the browser of the terminal device receives a response message of the query request, where the response message includes: and internal URL addresses of other terminal equipment in the local area network where the terminal equipment is located. The internal URL addresses of other terminal devices in the local area network may include the internal URL address of the set-top box.
One or more internal URL addresses may be included in the response message, where the internal URL addresses include intranet IP addresses (e.g., x.x.x.n 1; x.x.x.n2), directories, and so on.
And step 204, the browser of the terminal equipment initiates a WEB connection request according to the internal URL address so as to establish connection with the terminal equipment corresponding to the internal URL address.
The program included in the WEB page program downloaded in step 201 is used to control the browser to initiate a WEB connection request according to the internal URL address (including an intranet IP address).
And the terminal equipment corresponding to the internal URL address is used as target equipment. In this step, the terminal device may initiate WEB connection requests to the internal URL addresses one by using a browser through AJAX, and attempt to establish a TCP connection. If the response of the target equipment corresponding to the internal URL address (including the intranet IP address) cannot be received within a preset time period, determining that the internal URL address is wrong; and then proceeds to try the next internal URL address (containing the intranet IP address). If the response of the target device corresponding to the internal URL address (including the intranet IP address) is received within the preset time period, the connection is successful. That is, by using AJAX to initiate WEB connection requests one by one to these internal URL addresses using a browser, only other terminal devices belonging to the same minimum subnet as the terminal device (such as a mobile phone) can be connected. If a home corresponds to a public network IP address, other terminal devices in the home can be connected; if a cell corresponds to a public network IP address, each home corresponds to a primary subnet IP address, and each terminal device in each home has a secondary intranet IP address, only other terminal devices belonging to the same home as the terminal device (e.g., a mobile phone) can be connected although a plurality of intranet IP addresses are received in the response message.
Moreover, the program included in the WEB page program downloaded in step 201 is further configured to store the internal URL address (including the intranet IP address) of the target device that receives the response in the cache of the browser, and control the browser to directly connect to the target device according to the internal URL address when a subsequent connection is needed, without repeatedly executing steps 201 to 203.
The terminal device in the embodiment of the invention acquires the internal URL address of other terminal devices (such as a set top box) in the local area network through the browser, and establishes the connection with the terminal device corresponding to the internal URL address by using the browser. The terminal device (such as a mobile phone) uses a WEB browser, can establish connection with the target device by executing the program in the WEB page program, does not need to develop different WEB page programs aiming at different operating systems, is simple to transplant and strong in cross-terminal capability, and does not need to install additional application software on the operating system of the terminal device (such as a mobile phone) in advance.
Referring to fig. 3, an embodiment of the present invention provides a method for reporting an intranet IP address, where the method is executed by a terminal device (e.g., a set top box), and the method specifically includes:
step 301, the terminal device in the local area network environment queries its own intranet IP address.
Step 302, the terminal device sends an information packet to a network server on the internet according to a pre-stored address of the network server, wherein the information packet includes an intranet IP address of the terminal device, and the information packet may further include an identity of the terminal device.
Wherein, the terminal device in this step may send the information packet to the network server on the internet by using a WEB interface.
Step 302 may be periodically sent, that is, the terminal device periodically reports its own intranet IP address.
The information packet is sent from the terminal device and sent to the network server through the network device, and the network device adds the public network IP address to the information packet. The network device can be at least one of a router, a switch and a gateway, the network device can also encrypt the information packet added with the public network IP address and send the encrypted packet to a network server, and the subsequent network server decrypts the encrypted packet and then carries out identity authentication on the terminal device according to the identity of the terminal device, and only receives the information packet with legal identity to prevent network attack and deception.
According to the embodiment of the invention, the terminal device reports the intranet IP address of the terminal device to the network server, so that the network server can establish the corresponding relation between the public network IP address of the local area network and the internal URL address (including the intranet IP address) of the terminal device in the local area network, and another terminal device (such as a mobile phone) can conveniently acquire the internal URL address of the terminal device (such as a set top box) from the network server to establish connection with the terminal device (such as the set top box).
Referring to fig. 4, an embodiment of the present invention provides a local area network device discovery method for a WEB page, where the method specifically includes:
step 401, the set-top box in the local area network environment queries its own intranet IP address.
Step 402, the set-top box sends an information packet to a network server on the internet via the routing device according to a pre-stored address of the network server, wherein the information packet sent by the set-top box includes an intranet IP address of the set-top box and may also include an identity of the set-top box.
The detailed implementation of this step is similar to step 302, and is not described herein again.
Step 403, the network server receives an information packet, where the information packet includes: the intranet IP address of the set-top box, and the information packet can also comprise the identity of the set-top box. The network server verifies whether the set-top box is legal or not according to the identity identification information of the set-top box, and if the set-top box is legal, the corresponding relation between the public network IP address and the internal URL address (including the intranet IP address) of the set-top box is established.
When the network server receives the information packet, the HTTP connection between the network server and the set-top box is established, the network server acquires a public network IP address in a local area network where the set-top box is located according to the established HTTP connection, and a corresponding relation between the public network IP address and an internal URL address of the set-top box is established. In another embodiment, the information packet is originated by the set-top box and forwarded through the network device, and when the information packet is forwarded through the network device, the network device adds its own public network IP address to the information packet, so that the subsequent network server establishes the corresponding relationship between the public network IP address and the internal URL address of the set-top box.
The internal URL address of the set top box comprises an intranet IP address and a file directory address of the set top box, the file directory address can be preset, so that the set top box does not need to report periodically, and the network server generates the internal URL address by using the intranet IP address, the file directory address and other information reported by the set top box; in another implementation, the set-top box may also directly report the internal URL address, and the network server stores the internal URL address directly reported by the set-top box.
Step 404, the browser of the mobile phone downloads the WEB page program from the WEB server according to the address of the WEB server, and the WEB server provides the WEB page program to the mobile phone by using the WEB interface. The WEB page program includes programs, for example, the WEB page program includes: the method comprises the steps of controlling a browser of the mobile phone to send out a query request, and/or controlling the browser of the mobile phone to initiate WEB connection by utilizing an internal URL address (including an intranet IP address, a file directory address, an access parameter and the like) in a local area network, and/or controlling the browser of the mobile phone to store the internal URL address which is successfully connected, and/or controlling the browser of the mobile phone to connect with the stored internal URL address in the subsequent connection.
Step 405, the browser of the mobile phone executes a program for controlling the browser of the mobile phone to send out a query request in the WEB page program to initiate the query request, and the query request is sent to the network server through the routing device.
Step 406, the network server uses the public network IP address as an index according to the corresponding relationship established in step 403, and searches for the internal URL address of other terminal devices in the local area network corresponding to the public network IP address. And the internal URL addresses of other terminal equipment in the local area network corresponding to the public network IP address comprise the internal URL addresses of the set top box.
Step 407, the network server sends a response message to the browser of the mobile phone, where the response message includes an internal URL address corresponding to the public network IP address. Wherein, the internal URL address corresponding to the public network IP address comprises the internal URL address of the set-top box.
And step 408, the browser of the mobile phone initiates a WEB connection request according to the internal URL address to establish the connection with the set top box corresponding to the internal URL address.
For a specific implementation of this step, reference may be made to the following description of step 204, which is not described again.
Step 409, after the connection is successful, the browser of the mobile phone stores the internal URL address of the set-top box in the cache of the browser, so that the browser can be directly connected with the set-top box according to the internal URL address in the subsequent connection.
The specific implementation manner of each step in this embodiment may refer to the corresponding description of the embodiment shown in fig. 1 to fig. 3, and is not described herein again.
In the embodiment of the invention, the network server prestores the corresponding relation between the public network IP address of the local area network and the internal URL address of the terminal equipment (such as a set-top box) in the local area network, and the mobile phone acquires the internal URL address of the terminal equipment (such as the set-top box) in the local area network from the network server through the WEB browser without acquiring the internal URL address from the set-top box in the local area network, so that a UDP (user datagram protocol) packet is not required to be used, and an additional application program is not required to be installed on an operating system of the mobile phone. Moreover, the mobile phone can establish connection with the set-top box by using a WEB browser and executing codes in the unified WEB page program, different WEB page programs do not need to be developed aiming at different operating systems, and the mobile phone is easy to transplant and strong in cross-terminal capability.
Referring to fig. 5, an embodiment of the present invention provides a WEB server, where the WEB server has a WEB server 500, where the WEB server includes:
a first receiving unit 501, configured to receive a query request initiated by a browser of a first terminal (e.g., a mobile phone) device; the first terminal device in this embodiment may be a mobile phone, a PC, a tablet computer, or the like, and the description is given here by taking a mobile phone as an example.
An internal URL address obtaining unit 502, configured to obtain, according to a public network IP address of a local area network in which a first terminal (e.g., a mobile phone) device is located, an internal URL address of another terminal device in the local area network corresponding to the public network IP address;
a sending unit 503, configured to send a response message of the query request to the browser of the first terminal (e.g., a mobile phone), where the response message includes: and internal URL addresses of other terminal equipment in the local area network.
Wherein, the WEB server further comprises:
a WEB page program providing unit 504, configured to provide a WEB page program to the first terminal (e.g., a mobile phone) device by using the first WEB interface, where the WEB page program includes: and a program for controlling the browser of the first terminal (such as a mobile phone) to send the query request. The WEB page program further includes: a program for controlling a browser of the first terminal (such as a mobile phone) to initiate a WEB connection by using an internal URL address (including an intranet IP address) of the terminal device in the local area network; and/or the WEB page program further comprises: the program for controlling the browser of the first terminal (such as a mobile phone) to store the internal URL address (including the intranet IP address) of the terminal device in the local area network, and the program for controlling the browser of the first terminal (such as a mobile phone) to connect with the stored internal URL address (including the intranet IP address) when the first connection is not performed.
Wherein the network server further comprises: a second receiving unit 505, configured to receive an information packet, where the information packet includes: an intranet IP address reported by a second terminal (such as a set top box) device;
a storage unit 506, configured to establish a corresponding relationship between the public network IP address and a URL address of the second terminal (e.g., a set-top box) device, where the URL address of the second terminal (e.g., a set-top box) device includes an intranet IP address of the second terminal (e.g., a set-top box) device; the internal URL address obtaining unit 502 is specifically configured to obtain, according to the corresponding relationship, an internal URL address of a second terminal (e.g., a set-top box) device in the local area network corresponding to the public network IP address.
Wherein, a second receiving unit 505 and a holding unit 506 may be located in the WEB server, wherein the second receiving unit 505 receives the information package by using a second WEB interface.
For a specific way of executing the corresponding function by each unit in this embodiment, please refer to the description of the method embodiment, which is not described herein again.
The network server in the embodiment of the present invention provides a WEB page program to a browser of a first terminal (e.g., a mobile phone) device, receives an inquiry request initiated by the browser of the first terminal (e.g., a mobile phone) device through a WEB interface, and sends an internal URL address (sent to the first terminal (e.g., a mobile phone) of another terminal device in a local area network where the first terminal (e.g., a mobile phone) device is located, so that the first terminal (e.g., a mobile phone) device can establish a connection with another terminal device corresponding to the internal URL address by using the browser, and it is no longer necessary to install additional application software on an operating system of the first terminal (e.g., a mobile phone) device.
Referring to fig. 6, an embodiment of the present invention provides a network system, including a first network server 60, and a second network server 70,
a second network server 70, configured to provide a WEB page program to a browser of the first terminal (e.g., a mobile phone), where the WEB page program includes: a program for controlling a browser of the first terminal (such as a mobile phone) to send a query request; the WEB page program further includes: a program for controlling a browser of the first terminal (such as a mobile phone) to initiate WEB connection by utilizing an intranet IP address in the local area network; and/or the WEB page program further comprises: the method comprises the steps of controlling a browser of the first terminal (such as a mobile phone) device to store a URL (Uniform resource locator) address (including an intranet IP (Internet protocol) address) program of the local area network, and controlling the browser of the first terminal (such as the mobile phone) device to connect with the stored internal URL address (including the intranet IP address) when the first terminal (such as the mobile phone) is not connected for the first time.
A first network server 60, configured to receive a query request initiated by a browser of a first terminal (e.g., a mobile phone) device; according to a public network IP address of a local area network where a first terminal (such as a mobile phone) device is located, obtaining internal URL addresses of other terminal devices in the local area network corresponding to the public network IP address; and sending a response message to the browser of the first terminal (such as a mobile phone), wherein the response message comprises internal URL addresses of other terminal devices in the local area network.
The first network server 60 is further configured to receive an information packet, where the information packet includes: an intranet IP address reported by a second terminal (such as a set top box) device; establishing a corresponding relation between the public network IP address and an internal URL address of the second terminal (such as a set top box), wherein the internal URL address of the second terminal (such as the set top box) comprises an intranet IP address of the second terminal (such as the set top box); the step of obtaining the internal URL addresses of other terminal devices in the local area network corresponding to the public network IP address according to the public network IP address of the local area network comprises the step of obtaining the URL address of a second terminal (such as a set top box) device according to the corresponding relation.
Specifically, the first WEB server 60 includes a first WEB server 600, and the first WEB server 600 includes: the first receiving unit 601, the internal URL address obtaining unit 602, the sending unit 603, the second receiving unit 605 and the saving unit 606, wherein the first receiving unit 601, the internal URL address obtaining unit 602, the sending unit 603, the second receiving unit 605 and the saving unit 606 are similar to or identical to the first receiving unit 501, the internal URL address obtaining unit 502, the sending unit 503, the second receiving unit 505 and the saving unit 506 in fig. 5, and are not described herein again.
The second WEB server 70 includes a second WEB server 700 for providing a WEB page program to a browser of the first terminal (e.g., mobile phone) device.
In the embodiment of the present invention, the first network server receives, through using the WEB interface, the query request initiated by the browser of the first terminal (e.g., mobile phone) device, and sends the internal URL address (including the intranet IP address) of the other terminal device in the local area network carrying the first terminal (e.g., mobile phone) device to the first terminal (e.g., mobile phone) device, so that the first terminal (e.g., mobile phone) device can establish a connection with another terminal device corresponding to the internal URL address (including the intranet IP address) address by using the browser, and it is no longer necessary to install additional application software on the operating system of the first terminal (e.g., mobile phone) device.
Referring to fig. 7, an embodiment of the present invention provides a terminal device, where the terminal device includes a browser, and the browser includes:
a downloading unit 701, configured to download a WEB page program of a WEB server according to an address of the WEB server;
a sending unit 702, configured to execute a code in a WEB page program to send a query request;
a receiving unit 703, configured to receive a response message of the query request, where the response message includes: internal URL addresses of other terminal devices in a local area network where the terminal device is located;
a connection unit 704, configured to initiate a WEB connection request according to the internal URL address, so as to establish a connection with a terminal device corresponding to the internal URL address.
For a specific way of executing the corresponding function by each unit in this embodiment, please refer to the description of the method embodiment, which is not described herein again.
As described above, the method for discovering a local area network device oriented to a WEB page and related apparatus provided by the present invention are described in detail, and a person skilled in the art may have a change in the specific implementation and application scope according to the idea of the present invention.
Claims (15)
1. A method for providing information in a local area network is characterized in that:
a first network server receives a query request initiated by a browser of first terminal equipment;
the first network server acquires internal URL addresses of other terminal equipment in the local area network corresponding to the public network IP address according to the public network IP address of the local area network where the first terminal equipment is located;
the first network server sends a response message of the query request to the browser of the first terminal device, wherein the response message comprises: and internal URL addresses of other terminal equipment in the local area network.
2. The method of claim 1,
before the first web server receives the browser-initiated query request of the first terminal device, the method further comprises:
the first network server provides a WEB page program to the first terminal device through a WEB interface, wherein the WEB page program comprises: a program for controlling the browser of the first terminal device to send the query request;
or, the second network server provides a WEB page program to the first terminal device through a WEB interface, where the WEB page program includes: and controlling the browser of the first terminal device to send the query request.
3. The method of claim 2,
the WEB page program further includes: a program for controlling the browser of the first terminal device to initiate a WEB connection to the internal URL addresses of other terminal devices in the local area network;
or,
the WEB page program further includes: the program for controlling the browser of the first terminal device to store the internal URL addresses of other terminal devices in the local area network, and the program for controlling the browser of the first terminal device to connect with the stored internal URL addresses of other terminal devices when the first terminal device is not connected for the first time.
4. The method of claim 1, wherein the other terminal devices in the local area network comprise a second terminal device, the method further comprising:
the first network server receives an information packet, the information packet comprising: the second terminal device reports the own intranet IP address;
the first network server establishes a corresponding relation between the public network IP address and a URL (Uniform resource locator) address of the second terminal equipment, wherein the URL address of the second terminal equipment comprises an intranet IP address of the second terminal equipment;
the obtaining of the internal URL addresses of the other terminal devices in the local area network corresponding to the public network IP address includes: and acquiring the internal URL address of the second terminal equipment in the local area network corresponding to the public network IP address by utilizing the corresponding relation.
5. The method of claim 4, further comprising:
and the first network server generates the URL address by using the intranet IP address and the file directory address of the second terminal equipment.
6. A method for discovering devices in a local area network, comprising:
the browser of the terminal equipment downloads the WEB page program of the network server according to the address of the network server;
the browser of the terminal equipment executes codes in a WEB page program to send a query request;
the browser of the terminal equipment receives a response message of the query request, wherein the response message comprises: internal URL addresses of other terminal devices in a local area network where the terminal device is located;
and the browser of the terminal equipment initiates a WEB connection request according to the internal URL address so as to establish connection with the terminal equipment corresponding to the internal URL address.
7. The method of claim 6,
the WEB page program further includes: the program for controlling the browser of the terminal device to store the internal URL addresses of other terminal devices in the local area network, and the program for controlling the browser of the terminal device to connect with the stored internal URL addresses of other terminal devices when the terminal device is not connected for the first time.
8. A network server, comprising:
a first receiving unit, configured to receive a query request initiated by a browser of a first terminal device;
the internal URL address acquisition unit is used for acquiring internal URL addresses of other terminal equipment in the local area network corresponding to the public network IP address according to the public network IP address of the local area network where the first terminal equipment is located;
a sending unit, configured to send a response message to the query request to the browser of the first terminal device, where the response message includes: internal URL addresses of other terminal devices in the local area network;
the first receiving unit, the internal URL address obtaining unit and the sending unit are located in a WEB server in a network server.
9. The WEB server of claim 8, wherein the WEB server further comprises:
a WEB page program providing unit for providing the first terminal device with a WEB page program,
wherein, the WEB page program comprises: and controlling the browser of the first terminal device to send the query request.
10. The network server of claim 9,
the WEB page program further includes: a program for controlling the browser of the first terminal device to initiate a WEB connection to the internal URL addresses of other terminal devices in the local area network;
and/or the like, and/or,
the WEB page program further includes: the program for controlling the browser of the first terminal device to store the internal URL addresses of other terminal devices in the local area network, and the program for controlling the browser of the first terminal device to connect with the stored internal URL addresses when the first terminal device is not connected for the first time.
11. The network server of claim 8, wherein the network server further comprises:
a second receiving unit, configured to receive an information packet, where the information packet includes: the intranet IP address reported by the second terminal equipment in the local area network;
a storage unit, configured to store a corresponding relationship between the public network IP address and a URL address of the second terminal device, where the URL address of the second terminal device includes an intranet IP address of the second terminal device;
the internal URL address obtaining unit is specifically configured to obtain, according to the correspondence, an internal URL address of a second terminal device in the local area network corresponding to the public network IP address.
12. A network system comprising a first network server, and a second network server,
the second network server is configured to provide a WEB page program to the browser of the first terminal device, where the WEB page program includes: a program for controlling the browser of the first terminal device to send out a query request;
the first network server is used for receiving a query request initiated by a browser of the first terminal equipment; according to the public network IP address of the local area network where the first terminal device is located, obtaining internal URL addresses of other terminal devices in the local area network corresponding to the public network IP address; and sending a response message to the browser of the first terminal device, wherein the response message comprises internal URL addresses of other terminal devices in the local area network.
13. The network system according to claim 12,
the WEB page program further includes: a program for controlling the browser of the first terminal device to initiate a WEB connection to the internal URL addresses of other terminal devices in the local area network;
and/or the like, and/or,
the WEB page program further includes: the program for controlling the browser of the first terminal device to store the internal URL addresses of other terminal devices in the local area network, and the program for controlling the browser of the first terminal device to connect with the stored internal URL addresses when the first terminal device is not connected for the first time.
14. The network system according to claim 12,
the first network server is further configured to receive an information packet, where the information packet includes: the intranet IP address reported by a second terminal device in a local area network, and establishing a corresponding relation between the public network IP address and an internal URL address of the second terminal device, wherein the internal URL address of the second terminal device comprises the intranet IP address of the second terminal device; the method comprises the steps of obtaining internal URL addresses of other terminal devices in a local area network corresponding to a public network IP address according to the public network IP address of the local area network where the first terminal device is located, and obtaining the internal URL address of the second terminal device according to the corresponding relation.
15. A terminal device, comprising a browser, wherein the browser comprises:
the download unit is used for downloading the WEB page program of the network server according to the address of the network server;
a sending unit, configured to execute a code in a WEB page program to send a query request;
a receiving unit, configured to receive a response message to the query request, where the response message includes: internal URL addresses of other terminal devices in a local area network where the terminal device is located;
and the connection unit is used for initiating a WEB connection request according to the internal URL address so as to establish the connection with the terminal equipment corresponding to the internal URL address.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610125637.2A CN105657055A (en) | 2016-03-07 | 2016-03-07 | Local area network equipment finding method and device oriented to WEB page |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610125637.2A CN105657055A (en) | 2016-03-07 | 2016-03-07 | Local area network equipment finding method and device oriented to WEB page |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105657055A true CN105657055A (en) | 2016-06-08 |
Family
ID=56492253
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610125637.2A Pending CN105657055A (en) | 2016-03-07 | 2016-03-07 | Local area network equipment finding method and device oriented to WEB page |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105657055A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106936947A (en) * | 2017-05-11 | 2017-07-07 | 深圳市茁壮网络股份有限公司 | A kind of gateway communication method, routing device and gateway communication system |
| CN107667518A (en) * | 2015-06-26 | 2018-02-06 | 西部数据技术公司 | The automatic discovery of electronic equipment and reach the standard grade |
| CN108055140A (en) * | 2017-12-05 | 2018-05-18 | 深圳市东微智能科技股份有限公司 | Cross-device communication method, device, storage medium and its computer equipment in networking |
| CN109474646A (en) * | 2017-09-07 | 2019-03-15 | 腾讯科技(深圳)有限公司 | Communication connecting method, device, system and storage medium |
| CN109981633A (en) * | 2019-03-19 | 2019-07-05 | 全链通有限公司 | Access method, equipment and the computer readable storage medium of server |
| CN116208656A (en) * | 2023-02-28 | 2023-06-02 | 深圳市鲸视科技有限公司 | Device connection method, device and server |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2002009105A1 (en) * | 2000-07-21 | 2002-01-31 | Samsung Electronics Co., Ltd. | Architecture for home network on world wide web with private-public ip address/url mapping |
| CN101741901A (en) * | 2009-12-21 | 2010-06-16 | 青岛海信宽带多媒体技术有限公司 | Method and device for realizing remote access to UPnP/DLNA device |
| CN104077117A (en) * | 2013-03-26 | 2014-10-01 | 联想(北京)有限公司 | Information processing method and control point equipment |
| CN104811817A (en) * | 2015-04-30 | 2015-07-29 | 北京奇艺世纪科技有限公司 | Method and device for using video client software to play videos |
| CN105187867A (en) * | 2015-07-22 | 2015-12-23 | 北京视信互动科技有限公司 | Media stream control method and device thereof |
-
2016
- 2016-03-07 CN CN201610125637.2A patent/CN105657055A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2002009105A1 (en) * | 2000-07-21 | 2002-01-31 | Samsung Electronics Co., Ltd. | Architecture for home network on world wide web with private-public ip address/url mapping |
| CN1443352A (en) * | 2000-07-21 | 2003-09-17 | 三星电子株式会社 | Architecture for home network on world wide web with private-public IP address/URL mapping |
| CN101741901A (en) * | 2009-12-21 | 2010-06-16 | 青岛海信宽带多媒体技术有限公司 | Method and device for realizing remote access to UPnP/DLNA device |
| CN104077117A (en) * | 2013-03-26 | 2014-10-01 | 联想(北京)有限公司 | Information processing method and control point equipment |
| CN104811817A (en) * | 2015-04-30 | 2015-07-29 | 北京奇艺世纪科技有限公司 | Method and device for using video client software to play videos |
| CN105187867A (en) * | 2015-07-22 | 2015-12-23 | 北京视信互动科技有限公司 | Media stream control method and device thereof |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107667518A (en) * | 2015-06-26 | 2018-02-06 | 西部数据技术公司 | The automatic discovery of electronic equipment and reach the standard grade |
| CN107667518B (en) * | 2015-06-26 | 2020-11-03 | 西部数据技术公司 | Automatic discovery and onboarding of electronic devices |
| CN106936947A (en) * | 2017-05-11 | 2017-07-07 | 深圳市茁壮网络股份有限公司 | A kind of gateway communication method, routing device and gateway communication system |
| CN109474646A (en) * | 2017-09-07 | 2019-03-15 | 腾讯科技(深圳)有限公司 | Communication connecting method, device, system and storage medium |
| CN109474646B (en) * | 2017-09-07 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Communication connection method, device, system and storage medium |
| CN108055140A (en) * | 2017-12-05 | 2018-05-18 | 深圳市东微智能科技股份有限公司 | Cross-device communication method, device, storage medium and its computer equipment in networking |
| CN108055140B (en) * | 2017-12-05 | 2021-05-04 | 深圳市东微智能科技股份有限公司 | Cross-device communication method, device, storage medium and computer equipment thereof in networking |
| CN109981633A (en) * | 2019-03-19 | 2019-07-05 | 全链通有限公司 | Access method, equipment and the computer readable storage medium of server |
| CN109981633B (en) * | 2019-03-19 | 2021-05-11 | 全链通有限公司 | Method, apparatus and computer-readable storage medium for accessing server |
| CN116208656A (en) * | 2023-02-28 | 2023-06-02 | 深圳市鲸视科技有限公司 | Device connection method, device and server |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6726426B2 (en) | Login-free method and device between terminals | |
| CN113518407B (en) | A smart device WiFi network configuration method, system, electronic device and medium | |
| US10154003B2 (en) | Method for acquiring identifier of terminal in network, management network element and storage medium | |
| CN105657055A (en) | Local area network equipment finding method and device oriented to WEB page | |
| US9781579B2 (en) | Method and device for realizing terminal WIFI talkback | |
| WO2013131472A1 (en) | Message processing method, device and system | |
| CN105141621A (en) | Network access monitoring method and device | |
| CN112217856A (en) | Address acquisition method, device, equipment and storage medium of application example | |
| US20160234307A1 (en) | Data transmission method, device, and system | |
| CN102368789A (en) | Method and system for connecting dual-stack terminal to network | |
| CN106656911A (en) | Portal authentication method, access device and management server | |
| CN118075331A (en) | Method, device, equipment and storage medium for establishing network access channel | |
| US9591601B2 (en) | Method, control node, gateway and computer program for enabling communication with a newly detected device | |
| CN103973648B (en) | Application data method for pushing, apparatus and system | |
| US7174333B2 (en) | Data obtaining method and terminals | |
| CN101163097A (en) | Method and device for remotely controlling local network device | |
| CN108810180B (en) | Scheduling method, device and terminal for domain name resolution redirection | |
| CN103138961A (en) | Server control method, controlled server and central control server | |
| CN111385371B (en) | MAC address acquisition method, device and equipment | |
| CA2446689A1 (en) | Requests in a communication system | |
| CN113285920B (en) | Service access method, device, equipment and storage medium | |
| CN111147613A (en) | Method, device, electronic equipment and medium based on direct communication of video network | |
| KR100909115B1 (en) | Network automatic login system | |
| JP6314500B2 (en) | COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM | |
| WO2019005618A1 (en) | Dns-based method of transmitting data |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into 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: 20160608 |