Intranet address identification jump analysis method and device
By generating a unique identification code UUID on the device and reporting it to the cloud server, it realizes automatic identification and jumping to the intranet address when logging in from the external network, and solves the problem that users need to manually enter the intranet IP address, and improves the problem of Access efficiency and enhanced security.
Patent Information
- Application Number
- CN202411606664.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-02-07
AI Technical Summary
In the same LAN, users need to manually enter the device's intranet IP address to access the home network device, resulting in cumbersome operations and inconvenient users who are not familiar with network knowledge.
By generating a unique identification code UUID when the device is turned on for the first time and recording it to the local hard disk; obtaining the available intranet IP address through the network interface management API, and reporting it to the cloud server every minute; when the user logs in from the browser, he reads the internal The network IP address and UUID are analyzed and processed according to the return situation, and automatically recognize and jump.
It realizes automatic identification and jump to the intranet address when logging in from the external network, simplifies the operation process, improves network access efficiency, and effectively prevents illegal access.
Smart Images

Figure CN119402278A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network access, and in particular to a method and device for analyzing intranet address recognition and jump. Background Art
[0002] With the popularization of home network devices, more and more users use devices such as NAS to store and share their data.
[0003] At present, in traditional network access, users generally access cloud websites through domain names. However, within the same LAN, if the public domain name is still used, the network performance of the intranet cannot be fully utilized. If you access directly through the LAN, you need to manually enter the intranet IP address of the device. This is very inconvenient for users who are not familiar with network knowledge.
[0004] Therefore, how to invent a method for logging in from the external network and automatically identifying and jumping to the internal network address in the local area network has become a problem that needs to be solved urgently. Summary of the invention
[0005] To this end, the present invention provides an intranet address recognition and jump analysis method and device, which can log in from the external network, automatically identify and jump to the intranet address in the local area network, simplify the operation process, and improve network access efficiency.
[0006] In order to achieve the above object, the present invention provides the following technical solution: a method for analyzing intranet address recognition and jump, comprising:
[0007] When the device is turned on for the first time, a unique identification code UUID is generated by setting the information data, and the unique identification code UUID is recorded in the local hard disk;
[0008] Obtain the currently available network interface through the network interface management API; judge the network interface one by one and filter out the available intranet IP addresses;
[0009] The intranet IP address and the unique identification code UUID are reported to the cloud server through a scheduled task every minute; the cloud server stores the received intranet IP address and the unique identification code UUID as benchmark data for subsequent device detection;
[0010] When the user logs in from the browser, the intranet IP address and the unique identification code UUID of the device are read from the cloud server; the browser initiates a request to the port specified by the intranet IP address based on the obtained intranet IP address;
[0011] According to the return of the request of the designated port of the intranet IP address, the operation algorithm is set to analyze and process; if the request times out, the device cannot access the intranet and the user accesses through the external network; if the request is returned but the unique identification code UUID does not match, the device cannot access the intranet and the user accesses through the external network; if the request is returned again and the unique identification code UUID matches, the device is normally connected to the intranet and the user accesses through the intranet;
[0012] During the process of device networking, if the system receives an abnormal situation, the abnormal situation will be written into the log or sent to the administrator for manual review.
[0013] As a preferred solution of an intranet address identification jump analysis method, in the process of generating the unique identification code UUID through the setting information data, the hardware information and timestamp information data are spliced into a character string; and the character string is used to generate the unique identification code UUID through a hash function.
[0014] As a preferred solution for an intranet address identification and jump analysis method, in the process of reporting the intranet IP address and the unique identification code UUID to the cloud server every minute through a scheduled task, the reported data format is JSON, and the reported data is encrypted through asymmetric encryption to ensure the security of the reported data.
[0015] As a preferred solution of an intranet address identification jump analysis method, in the process of analyzing and processing the return of the request to the specified port of the intranet IP address through the set operation algorithm, the set operation algorithm includes: comparison algorithm, timeout detection and security check;
[0016] The comparison algorithm is: extracting two UUID strings for matching, if the two are consistent, the match is successful;
[0017] The timeout detection is as follows: setting a timeout time, after making a port request, if no response is received after the timeout time, the request times out;
[0018] The security check is: in case of mismatch of identification codes, the system takes security measures; the security measures include: recording logs, sending warning emails, and triggering security events.
[0019] As a preferred solution for an intranet address identification and jump analysis method, during the device networking process, if the system receives an abnormal situation, the system sets a retry mechanism to initiate a port request again within a set time interval.
[0020] The present invention also provides an intranet address recognition jump analysis device, based on the above intranet address recognition jump analysis method, comprising:
[0021] A unique identification code UUID setting module is used to generate a unique identification code UUID by setting information data when the device is turned on for the first time, and record the unique identification code UUID to the local hard disk;
[0022] An available intranet IP address screening module is used to obtain currently available network interfaces through a network interface management API; to judge the network interfaces one by one and screen out available intranet IP addresses;
[0023] The data upload cloud server module is used to report the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task every minute; the cloud server stores the received intranet IP address and the unique identification code UUID as the benchmark data for subsequent device detection;
[0024] The port request initiation module is used to read the intranet IP address and the unique identification code UUID of the device from the cloud server when the user logs in from the browser; the browser initiates a request to the port specified by the intranet IP address according to the obtained intranet IP address;
[0025] The port request feedback processing module is used to analyze and process the return of the request to the specified port of the intranet IP address by setting an operation algorithm; if the request times out, the device cannot access the intranet and the user accesses through the external network; if the request is returned but the unique identification code UUID does not match, the device cannot access the intranet and the user accesses through the external network; if the request is returned again and the unique identification code UUID matches, the device is normally connected to the intranet and the user accesses through the intranet;
[0026] The abnormal situation processing module is used to write the abnormal situation into a log or send it to the administrator for manual review if the system receives an abnormal situation during the device networking process.
[0027] As a preferred solution for an intranet address identification and jump analysis device, in the unique identification code UUID setting module, in the process of generating the unique identification code UUID through the setting information data, the hardware information and timestamp information data are spliced into a character string; and the character string is used to generate the unique identification code UUID through a hash function.
[0028] As a preferred solution for an intranet address identification and jump analysis device, in the data upload cloud server module, in the process of reporting the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task every minute, the reported data format is JSON, and the reported data is encrypted by asymmetric encryption to ensure the security of the reported data.
[0029] As a preferred solution of the intranet address identification jump analysis device, in the port request feedback processing module, in the process of analyzing and processing the return of the request to the specified port according to the intranet IP address, the setting operation algorithm includes: comparison algorithm, timeout detection and security check;
[0030] The comparison algorithm is: extracting two UUID strings for matching, if the two are consistent, the match is successful;
[0031] The timeout detection is as follows: setting a timeout time, after making a port request, if no response is received after the timeout time, the request times out;
[0032] The security check is: in case of mismatch of identification codes, the system takes security measures; the security measures include: recording logs, sending warning emails, and triggering security events.
[0033] As a preferred solution for an intranet address identification and jump analysis device, in the abnormal situation processing module, during the device networking process, if the system receives an abnormal situation, the system sets a retry mechanism to initiate a port request again within a set time interval.
[0034] The present invention has the following advantages: when the device is turned on for the first time, a unique identification code UUID is generated by setting information data, and the unique identification code UUID is recorded in the local hard disk; the currently available network interface is obtained through the network interface management API; the network interface is judged one by one to filter out the available intranet IP addresses; the intranet IP address and the unique identification code UUID are reported to the cloud server through a scheduled task every minute; the cloud server stores the received intranet IP address and the unique identification code UUID as the benchmark data for subsequent device detection; when the user logs in from the browser, the intranet IP address and the unique identification code UUID of the device are read from the cloud server UUID; the browser initiates a request to the port specified by the intranet IP address according to the acquired intranet IP address; the return of the request to the port specified by the intranet IP address is analyzed and processed by setting an operation algorithm; if the request times out, the device cannot access the intranet and the user accesses through the external network; if the request is returned but the unique identification code UUID does not match, the device cannot access the intranet and the user accesses through the external network; if the request is returned again and the unique identification code UUID matches, the device normally accesses the intranet and the user accesses through the intranet; during the device networking process, if the system receives an abnormal situation, the abnormal situation is written into the log or sent to the administrator for manual review. The present invention makes it easier and faster to access home network devices from the external network. Users no longer need to manually enter the intranet IP address or perform cumbersome configuration operations, thereby improving the user experience. The present invention uses a unique identification code to perform device identity authentication, effectively preventing illegal access. At the same time, the intranet IP address of the device will not be exposed to the external network, enhancing the privacy protection of the user. The present invention uses a timed reporting method to ensure the timeliness and accuracy of the intranet IP address of the device. At the same time, obtaining a unique identification code from the intranet for comparison will not significantly affect the network bandwidth and speed, thereby improving efficiency. The present invention is applicable to various home network devices, such as NAS, routers, smart home devices, etc., and has wide practicality and promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0036] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0037] Figure 1 A schematic diagram of a flow chart of an intranet address identification and jump analysis method provided in Embodiment 1 of the present invention;
[0038] Figure 2 This is a schematic diagram of the architecture of an intranet address identification and jump analysis device provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0039] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Example 1
[0041] See also Figure 1 Embodiment 1 of the present invention provides an intranet address recognition jump analysis method, comprising the following steps:
[0042] S1. When the device is turned on for the first time, a unique identification code UUID is generated by setting information data, and the unique identification code UUID is recorded in the local hard disk;
[0043] S2. Obtain the currently available network interface through the network interface management API; judge the network interface one by one and filter out the available intranet IP addresses;
[0044] S3. Report the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task every minute; the cloud server stores the received intranet IP address and the unique identification code UUID as benchmark data for subsequent device detection;
[0045] S4. When the user logs in from the browser, the intranet IP address and the unique identification code UUID of the device are read from the cloud server; the browser initiates a request to the port specified by the intranet IP address based on the obtained intranet IP address;
[0046] S5. Analyze and process the request return status of the designated port of the intranet IP address by setting an operation algorithm; if the request times out, the device cannot access the intranet and the user accesses through the external network; if the request returns but the unique identification code UUID does not match, the device cannot access the intranet and the user accesses through the external network; if the request returns again and the unique identification code UUID matches, the device is normally connected to the intranet and the user accesses through the intranet;
[0047] S6. During the device networking process, if the system receives an abnormal situation, the abnormal situation will be written into a log or sent to an administrator for manual review.
[0048] In this embodiment, in step S1, when the device is powered on for the first time, a unique identification code UUID is generated by setting information data, and the unique identification code UUID is recorded in the local hard disk;
[0049] Specifically, when the device is powered on for the first time, the hardware information and timestamp and other variables are concatenated into a string; for example, the following three strings are concatenated: the Mac address of the network card, the millisecond value of the current time, and a 6-digit random number generated by a system random function; for the concatenated string, a unique UUID is generated using sha-256 or other hash functions; the UUID is recorded on the local hard disk and will not be generated again during subsequent startups.
[0050] In this embodiment, in step S2, the currently available network interface is obtained through the network interface management API; the network interface is judged one by one to filter out the available intranet IP addresses;
[0051] Specifically, the currently available network interfaces are enumerated through the network interface management API provided by the operating system (such as the getifaddrs function in Linux / Unix systems, or the GetAdaptersAddresses function in Windows systems); these network interfaces are traversed in turn and the network addresses are judged to filter out the available intranet IP addresses. Usually, the intranet IP address range is the private IP address segment (such as 192.168.xx, 10.xxx, 172.16.xx~172.31.xx), and the IP address that meets these ranges is selected as the intranet IP.
[0052] In this embodiment, in step S3, the intranet IP address and the unique identification code UUID are reported to the cloud server through a scheduled task every minute; the cloud server stores the received intranet IP address and the unique identification code UUID as reference data for subsequent device detection;
[0053] Specifically, the intranet IP address and UUID are reported to the cloud server every minute through a scheduled task. The format of the reported data is JSON, and the content is {"IP":"<intranet IP address>","UUID":"<unique identification code>"}. The process of reporting data uses a common asymmetric encryption method to ensure data security. After receiving the reported data, the cloud server stores the information in the database as the benchmark data for subsequent device detection.
[0054] In this embodiment, in step S4, when the user logs in from the browser, the intranet IP address and the unique identification code UUID of the device are read from the cloud server; the browser initiates a request to the port specified by the intranet IP address based on the obtained intranet IP address;
[0055] Specifically, when a user logs in from a browser, the intranet IP address and unique identifier UUID of the current device are read from the cloud server. Based on the obtained intranet IP address, the browser attempts to initiate a request to the port specified by the IP address (usually the device service port). The purpose of this request is to verify whether the device is in the same LAN.
[0056] In this embodiment, in step S5, according to the return of the request to the designated port of the intranet IP address, the operation algorithm is set to analyze and process; if the request times out, the device cannot access the intranet, and the user accesses through the external network; if the request is returned, but the unique identification code UUID does not match, the device cannot access the intranet, and the user accesses through the external network; if the request is returned again, and the unique identification code UUID matches, the device is normally connected to the intranet, and the user accesses through the intranet;
[0057] Wherein, the setting operation algorithm includes: comparison algorithm, timeout detection and safety check;
[0058] The comparison algorithm is: extracting two UUID strings for matching, if the two are consistent, the match is successful;
[0059] The timeout detection is as follows: setting a timeout time, after making a port request, if no response is received after the timeout time, the request times out;
[0060] The security check is: in case of mismatch of identification codes, the system takes security measures; the security measures include: recording logs, sending warning emails, and triggering security events.
[0061] Specifically, if the request sent by the browser does not receive a response within the set timeout period, the system determines that the device is not in the local area network where the user is located. At this time, the system will not perform further operations, and the user continues to access through the external network;
[0062] If the port receives a response, it extracts the identification code in the response and compares it with the identification code recorded by the cloud server. If the two do not match, the system determines that the device to which the request arrives is not the target device recorded in the cloud. It may be that other devices are in the same local area network, or the target device information has been tampered with, and the user continues to access it through the external network;
[0063] If the port is returned and the unique identification code is the same as that on the cloud, it indicates that the devices are in the same local area network. At this time, the system guides the browser to jump to the device's intranet IP address for access, and all subsequent requests will be made through the intranet path to optimize the access speed.
[0064] In this embodiment, in step S6, during the process of device networking, if the system receives an abnormal situation, the abnormal situation is written into a log or sent to an administrator for manual review.
[0065] Specifically, when the system receives an abnormal situation, it writes the information into a log or sends it to an administrator for manual review.
[0066] The system can also set up a retry mechanism to re-initiate port requests within a set time interval to reduce misjudgments caused by network fluctuations.
[0067] In summary, when the device is turned on for the first time, the present invention generates a unique identification code UUID by setting information data, and records the unique identification code UUID to the local hard disk; obtains the currently available network interface through the network interface management API; judges the network interface one by one, and screens out the available intranet IP address; reports the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task every minute; the cloud server stores the received intranet IP address and the unique identification code UUID as the benchmark data for subsequent device detection; when the user logs in from the browser, the intranet IP address and the unique identification code UUID of the device are read from the cloud server UID; the browser initiates a request to the port specified by the intranet IP address according to the acquired intranet IP address; the return of the request to the port specified by the intranet IP address is analyzed and processed by setting an operation algorithm; if the request times out, the device cannot access the intranet and the user accesses through the external network; if the request is returned but the unique identification code UUID does not match, the device cannot access the intranet and the user accesses through the external network; if the request is returned again and the unique identification code UUID matches, the device normally accesses the intranet and the user accesses through the intranet; during the device networking process, if the system receives an abnormal situation, the abnormal situation is written into the log or sent to the administrator for manual review. The present invention makes it easier and faster to access home network devices from the external network. Users no longer need to manually enter the intranet IP address or perform cumbersome configuration operations, thereby improving the user experience. The present invention uses a unique identification code to perform device identity authentication, effectively preventing illegal access. At the same time, the intranet IP address of the device will not be exposed to the external network, enhancing the privacy protection of the user. The present invention uses a timed reporting method to ensure the timeliness and accuracy of the intranet IP address of the device. At the same time, obtaining a unique identification code from the intranet for comparison will not significantly affect the network bandwidth and speed, thereby improving efficiency. The present invention is applicable to various home network devices, such as NAS, routers, smart home devices, etc., and has wide practicality and promotion value.
[0068] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0069] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0070] Example 2
[0071] See also Figure 2 Embodiment 2 of the present invention further provides an intranet address recognition and jump analysis device, comprising:
[0072] The unique identification code UUID setting module 001 is used to generate a unique identification code UUID by setting information data when the device is turned on for the first time, and record the unique identification code UUID to the local hard disk;
[0073] The available intranet IP address screening module 002 is used to obtain the currently available network interface through the network interface management API; judge the network interface one by one, and screen out the available intranet IP address;
[0074] The data upload cloud server module 003 is used to report the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task every minute; the cloud server stores the received intranet IP address and the unique identification code UUID as the benchmark data for subsequent device detection;
[0075] The port request initiation module 004 is used to read the intranet IP address and the unique identification code UUID of the device from the cloud server when the user logs in from the browser; the browser initiates a request to the port specified by the intranet IP address according to the obtained intranet IP address;
[0076] The port request feedback processing module 005 is used to analyze and process the return of the request to the specified port of the intranet IP address by setting an operation algorithm; if the request times out, the device cannot access the intranet and the user accesses through the external network; if the request is returned but the unique identification code UUID does not match, the device cannot access the intranet and the user accesses through the external network; if the request is returned again and the unique identification code UUID matches, the device is normally connected to the intranet and the user accesses through the intranet;
[0077] The abnormal situation processing module 006 is used to write the abnormal situation into a log or send it to an administrator for manual review if the system receives an abnormal situation during the device networking process.
[0078] In this embodiment, in the unique identification code UUID setting module 001, in the process of generating the unique identification code UUID through the setting information data, the hardware information and timestamp information data are spliced into a character string; and the character string is used to generate the unique identification code UUID through a hash function.
[0079] In this embodiment, in the data upload cloud server module 003, in the process of reporting the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task every minute, the reported data format is JSON, and the reported data is encrypted by asymmetric encryption to ensure the security of the reported data.
[0080] In this embodiment, in the port request feedback processing module 005, in the process of analyzing and processing the return of the request of the specified port of the intranet IP address through the setting operation algorithm, the setting operation algorithm includes: comparison algorithm, timeout detection and security check;
[0081] The comparison algorithm is: extracting two UUID strings for matching, if the two are consistent, the match is successful;
[0082] The timeout detection is as follows: setting a timeout time, after making a port request, if no response is received after the timeout time, the request times out;
[0083] The security check is: in case of mismatch of identification codes, the system takes security measures; the security measures include: recording logs, sending warning emails, and triggering security events.
[0084] In this embodiment, in the abnormal situation processing module 006, during the process of device networking, if the system receives an abnormal situation, the system sets a retry mechanism to initiate a port request again within a set time interval.
[0085] It should be noted that the information interaction, execution process and other contents between the modules of the above-mentioned system are based on the same concept as the method embodiment in Example 1 of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the present application, and will not be repeated here.
[0086] Example 3
[0087] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, in which a program code for an intranet address identification and jump analysis method is stored. The program code includes instructions for executing an intranet address identification and jump analysis method of embodiment 1 or any possible implementation thereof.
[0088] The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0089] Example 4
[0090] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;
[0091] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute an intranet address identification and jump analysis method of embodiment 1 or any possible implementation thereof.
[0092] Specifically, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor implemented by reading software codes stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0093] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable systems. The computer instructions can be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
[0094] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing system, they can be concentrated on a single computing system, or distributed on a network composed of multiple computing systems, and optionally, they can be implemented by a program code executable by a computing system, so that they can be stored in a storage system and executed by the computing system, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0095] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A method for analyzing intranet address identification and redirection, characterized in that: include: When the device is turned on for the first time, a unique identification code UUID is generated by setting the information data, and the unique identification code UUID is recorded in the local hard disk; Obtain the currently available network interface through the network interface management API; judge the network interface one by one and filter out the available intranet IP addresses; Report the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task; The cloud server stores the received intranet IP address and the unique identification code UUID as reference data for subsequent device detection; When the user logs in from the browser, the intranet IP address and the unique identification code UUID of the device are read from the cloud server; the browser initiates a request to the port specified by the intranet IP address based on the obtained intranet IP address; According to the return of the request of the designated port of the intranet IP address, the operation algorithm is set to analyze and process; if the request times out, the device cannot access the intranet and the user accesses through the external network; if the request is returned but the unique identification code UUID does not match, the device cannot access the intranet and the user accesses through the external network; if the request is returned again and the unique identification code UUID matches, the device is normally connected to the intranet and the user accesses through the intranet; During the process of device networking, if the system receives an abnormal situation, the abnormal situation will be written into the log or sent to the administrator for manual review.
2. According to claim 1, a method for analyzing intranet address recognition and jump, characterized in that: In the process of generating the unique identification code UUID through the setting information data, the hardware information and the timestamp information data are concatenated into a character string; and the character string is used to generate the unique identification code UUID through a hash function.
3. According to claim 2, a method for analyzing intranet address recognition and jump, characterized in that: In the process of reporting the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task, the reported data format is JSON, and the reported data is encrypted by an asymmetric encryption method.
4. The method for analyzing intranet address recognition and jump according to claim 3 is characterized in that: In the process of analyzing and processing the return of the request to the specified port of the intranet IP address through the set operation algorithm, the set operation algorithm includes: comparison algorithm, timeout detection and security check; The comparison algorithm is: extracting two UUID strings for matching, if the two are consistent, the match is successful; The timeout detection is as follows: setting a timeout time, after making a port request, if no response is received after the timeout time, the request times out; The security check is: in case of mismatch of identification codes, the system takes security measures; the security measures include: recording logs, sending warning emails, and triggering security events.
5. The method for analyzing intranet address recognition and jump according to claim 4, characterized in that: During the device networking process, if the system receives an abnormal situation, the system sets a retry mechanism to initiate a port request again within a set time interval.
6. An intranet address recognition jump analysis device, using an intranet address recognition jump analysis method according to any one of claims 1 to 5, characterized in that: include: A unique identification code UUID setting module is used to generate a unique identification code UUID by setting information data when the device is turned on for the first time, and record the unique identification code UUID to the local hard disk; An available intranet IP address screening module is used to obtain currently available network interfaces through a network interface management API; to judge the network interfaces one by one and screen out available intranet IP addresses; The data upload cloud server module is used to report the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task; The cloud server stores the received intranet IP address and the unique identification code UUID as reference data for subsequent device detection; The port request initiation module is used to read the intranet IP address and the unique identification code UUID of the device from the cloud server when the user logs in from the browser; the browser initiates a request to the port specified by the intranet IP address according to the obtained intranet IP address; The port request feedback processing module is used to analyze and process the return of the request to the specified port of the intranet IP address by setting an operation algorithm; if the request times out, the device cannot access the intranet and the user accesses through the external network; if the request is returned but the unique identification code UUID does not match, the device cannot access the intranet and the user accesses through the external network; if the request is returned again and the unique identification code UUID matches, the device is normally connected to the intranet and the user accesses through the intranet; The abnormal situation processing module is used to write the abnormal situation into a log or send it to the administrator for manual review if the system receives an abnormal situation during the device networking process.
7. The intranet address recognition and jump analysis device according to claim 6, characterized in that: In the unique identification code UUID setting module, in the process of generating the unique identification code UUID through the setting information data, the hardware information and timestamp information data are spliced into a character string; and the unique identification code UUID is generated by the character string through a hash function.
8. The intranet address recognition and jump analysis device according to claim 7, characterized in that: In the data upload cloud server module, in the process of reporting the intranet IP address and the unique identification code UUID to the cloud server through a scheduled task, the reported data format is JSON, and the reported data is encrypted by an asymmetric encryption method.
9. The intranet address recognition and jump analysis device according to claim 8, characterized in that: In the port request feedback processing module, in the process of analyzing and processing the return of the request of the specified port of the intranet IP address through the set operation algorithm, the set operation algorithm includes: comparison algorithm, timeout detection and security check; The comparison algorithm is: extracting two UUID strings for matching, if the two are consistent, the match is successful; The timeout detection is as follows: setting a timeout time, after making a port request, if no response is received after the timeout time, the request times out; The security check is: in case of mismatch of identification codes, the system takes security measures; the security measures include: recording logs, sending warning emails, and triggering security events.
10. The intranet address recognition and jump analysis device according to claim 9, characterized in that: In the abnormal situation processing module, during the process of device networking, if the system receives an abnormal situation, the system sets a retry mechanism to initiate a port request again within a set time interval.