IP automatic configuration method and system

By automatically configuring IP addresses in a LAN, the device automatically obtains IP when it first accesses the network, solving the problems of high complexity and error risks of manual configuration, improving the flexibility and scalability of the network, and reducing costs.

CN120342998APending Publication Date: 2025-07-18FUZHOU MILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510669141.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

During the deployment of embedded devices, manually configuring IP addresses increases deployment complexity and configuration error risks, limits network flexibility and scalability, and increases construction costs.

Method used

By connecting the device to be configured to a pre-established LAN, using the upper computer to broadcast its IP address, the device sends serial number (SN) data to the upper computer, and the upper computer obtains the corresponding configured IP according to the mapping table and sends it to the device, and the device automatically changes the IP address.

Benefits of technology

It realizes that the device automatically obtains IP addresses when it first accesses to the network, reduces the workload of administrators to manually allocate and record IP addresses, avoids IP address conflicts and management complexity, and reduces configuration time and labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120342998A_ABST
    Figure CN120342998A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of IP configuration, in particular to an IP automatic configuration method and system. The method comprises the following steps of: accessing to-be-configured equipment into a pre-established local area network and acquiring an initial IP (Internet Protocol); the upper computer in the local area network broadcasts an upper computer IP to all devices in the local area network; the equipment to be configured sends SN data of the equipment to the upper computer according to the received IP of the upper computer; the upper computer obtains a configuration IP corresponding to the SN data from a local preset mapping table according to the SN data and sends the configuration IP to the equipment to be configured; and the to-be-configured device receives the configuration IP and changes the initial IP into the configuration IP to complete the IP automatic configuration. According to the method, when the equipment accesses the network for the first time, the IP address can be automatically obtained, an administrator does not need to manually allocate and record the IP address for each piece of equipment and does not need to worry about the problem of IP address conflict or management complexity, and the workload of the network administrator is relieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of IP configuration, and particularly to an IP automatic configuration method and system. Background Art

[0002] During the deployment and installation of embedded devices, configuring the IP is an essential step. However, if the device requires on-site engineers to manually configure the IP, it will increase the deployment complexity, the risk of configuration errors, increase the construction cost, and limit the flexibility and scalability of the network. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide an IP automatic configuration method and system to solve the problems pointed out in the above background art.

[0004] To achieve the above purpose, the technical solution adopted by the present invention is as follows: An IP automatic configuration method includes the following steps: S1. Connect the device to be configured to a pre-established local area network and obtain an initial IP. S2. The host computer in the local area network broadcasts its own IP to all devices in the local area network. S3. The device to be configured sends its SN data to the host computer according to the received host computer IP. S4. The host computer obtains the configuration IP corresponding to the SN data from a locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the corresponding configuration IPs one by one. S5. The device to be configured receives the configuration IP, changes the initial IP to the configuration IP, and completes the IP automatic configuration.

[0005] Further, step S4 further includes: After receiving the SN data, the host computer determines whether the locally preset mapping table contains the SN data. If so, it obtains the configuration IP corresponding to the SN data from the mapping table and sends it to the device to be configured.

[0006] Further, step S4 further includes: If the mapping table does not contain the SN data, the host computer synchronously sends the SN data and the current IP address of the device to be configured to other host computers in the same local area network. After receiving the SN data, other host computers determine whether the locally preset mapping table contains the SN data. If so, they obtain the configuration IP corresponding to the SN data, establish a communication connection with the device to be configured according to the current IP address, and send the configuration IP to the device to be configured.

[0007] Further, step S4 further includes: When the host computer receives the SN data, it obtains the corresponding reception time, and calculates the time difference based on the broadcast time; Determine whether the time difference does not exceed a preset threshold. If not, when receiving the SN data, determine whether the preset mapping table contains the SN data.

[0008] Further, step S5 further includes: After completing the automatic IP configuration, generate corresponding feedback information and send the feedback information to the host computer; After step S5, the following steps are further included: S6. The host computer receives the feedback information, stores the feedback information and synchronously sends it to the cloud server for storage.

[0009] An IP automatic configuration system includes a processor and a memory. A program or instruction is stored on the memory. When the program or instruction is executed by the processor, the following steps are implemented: S1. Connect the device to be configured to a pre-established local area network and obtain an initial IP; S2. The host computer in the local area network broadcasts the host computer IP to all devices in the local area network; S3. The device to be configured sends the SN data of the device to the host computer according to the received host computer IP; S4. The host computer obtains the configuration IP corresponding to the SN data from a locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores a plurality of SN data and the configuration IPs corresponding to them one by one; S5. The device to be configured receives the configuration IP, changes the initial IP to the configuration IP, and completes the automatic IP configuration.

[0010] Further, when the program or instruction is executed by the processor, the following steps are further implemented: When the host computer receives the SN data, determine whether the locally preset mapping table contains the SN data. If so, obtain the configuration IP corresponding to the SN data from the mapping table and send it to the device to be configured.

[0011] Further, when the program or instruction is executed by the processor, the following steps are further implemented: If the mapping table does not contain the SN data, the host computer synchronously sends the SN data and the current IP address of the device to be configured to other host computers in the same local area network; When other host computers receive the SN data, they determine whether the local preset mapping table contains the SN data. If so, they obtain the configured IP corresponding to the SN data from the mapping table, establish a communication connection with the device to be configured based on the current IP address, and send the configured IP to the device to be configured.

[0012] Further, when the program or instruction is executed by the processor, the following steps are also implemented: When the host computer receives the SN data, it obtains the corresponding reception time, and calculates the time difference based on the broadcast time. It is determined whether the time difference does not exceed a preset threshold. If not, when the SN data is received, it is determined whether the preset mapping table contains the SN data.

[0013] Further, when the program or instruction is executed by the processor, the following steps are also implemented: After the IP automatic configuration is completed, corresponding feedback information is generated and sent to the host computer. After step S5, the following is also included: S6. The host computer receives the feedback information, stores the feedback information, and synchronously sends it to the cloud server for storage.

[0014] The beneficial effects of the present invention are: An IP automatic configuration method and system provided by the present invention. By connecting the device to be configured to a pre-established local area network and obtaining an initial IP; the host computer in the local area network broadcasts the host computer IP to all devices in the local area network; the device to be configured sends the SN data of the device to the host computer according to the received host computer IP; the host computer obtains the configured IP corresponding to the SN data from the local preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the configured IPs corresponding to them one by one; the device to be configured receives the configured IP and changes the initial IP to the configured IP to complete the IP automatic configuration. Through the above method, when the device first accesses the network, it can automatically obtain an IP address, can adapt to different network environments, the administrator does not need to manually allocate and record IP addresses for each device, nor does it need to worry about IP address conflicts or management complexity issues, which reduces the workload of network administrators and can significantly reduce the configuration time and labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 The flowchart of the steps of an IP automatic configuration method of the present invention is shown; Figure 2 The structural block diagram of an IP automatic configuration system of the present invention is shown; Explanation of the reference numerals in the drawings: 1 - Processor; 2 - Memory. Detailed Implementation Manner

[0016] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments as follows: As Figure 1 shown, an IP automatic configuration method provided by the present invention includes the following steps: S1. Connect the device to be configured to a pre - established local area network and obtain an initial IP. S2. The host computer in the local area network broadcasts its IP to all devices in the local area network. S3. The device to be configured sends the SN data of the device to the host computer according to the received host computer IP. S4. The host computer obtains the configuration IP corresponding to the SN data from a locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the corresponding configuration IPs one by one. S5. The device to be configured receives the configuration IP, changes the initial IP to the configuration IP, and completes the IP automatic configuration.

[0017] It can be seen from the above description that the present invention has the following beneficial effects: An IP automatic configuration method provided by the present invention includes: connecting the device to be configured to a pre - established local area network and obtaining an initial IP; the host computer in the local area network broadcasts its IP to all devices in the local area network; the device to be configured sends the SN data of the device to the host computer according to the received host computer IP; the host computer obtains the configuration IP corresponding to the SN data from a locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the corresponding configuration IPs one by one; the device to be configured receives the configuration IP, changes the initial IP to the configuration IP, and completes the IP automatic configuration. Through the above method, when the device is first connected to the network, it can automatically obtain an IP address, can adapt to different network environments, the administrator does not need to manually allocate and record IP addresses for each device, nor does it need to worry about IP address conflicts or management complexity problems, which reduces the workload of network administrators and can significantly reduce the configuration time and labor costs.

[0018] Further, step S4 further includes: The host computer receives the SN data, determines whether the locally preset mapping table contains the SN data. If so, it obtains the configuration IP corresponding to the SN data from the mapping table and sends it to the device to be configured.

[0019] As can be seen from the above description, through the above method, first determine whether the SN data is included in the locally preset mapping table, and if the SN data is included, then obtain the corresponding configured IP to complete the acquisition of the configured IP.

[0020] Further, step S4 further includes: If the SN data is not included in the mapping table, the host computer synchronously sends the SN data and the current IP address of the device to be configured to other host computers located in the same local area network; After receiving the SN data, other host computers determine whether the SN data is included in the locally preset mapping table. If so, obtain the configured IP corresponding to the SN data from the mapping table, establish a communication connection with the device to be configured according to the current IP address, and send the configured IP to the device to be configured.

[0021] As can be seen from the above description, through the above method, it can be applied to the application scenario where there are more than two host computers in the same local area network. Since more than two host computers can broadcast to all devices in the same local area network, the devices that receive the broadcast will also send SN data to more than two host computers. Normally, only the host computer storing the SN data will feedback the corresponding configured IP to the device to complete the configured IP. However, it is possible that the host computer storing the SN data is exactly in an abnormal state, such as restarting, crashing, etc., and cannot receive data normally in a short time. At this time, when the host computer receiving the SN data determines that it does not store the SN data itself, it synchronously sends the SN data to other host computers located in the same local area network, so as to give the host computer that really has the SN data multiple receiving opportunities. The number of synchronous transmissions here can be multiple and sent at regular intervals, which can be specifically set according to actual requirements. Through this method, it can effectively avoid the inability to complete the IP automatic configuration operation due to the host computer storing the SN data being exactly in an abnormal state. In this process, the host computer that does not store the SN data plays a role in data forwarding, and subsequent configuration of the IP is taken over by other host computers.

[0022] Further, step S4 further includes: When the host computer receives the SN data, obtain the corresponding reception time, and calculate the time difference according to the broadcast time; Determine whether the time difference does not exceed a preset threshold. If not, when receiving the SN data, determine whether the SN data is included in the preset mapping table.

[0023] As can be seen from the above description, through the above method, by calculating the time difference as the basis for judging whether the received SN data is valid, the security of data transmission is improved.

[0024] Further, step S5 further includes: After the IP automatic configuration is completed, corresponding feedback information is generated and sent to the host computer. After step S5, it further includes: S6. The host computer receives the feedback information, stores the feedback information and synchronously sends it to the cloud server for storage.

[0025] As can be seen from the above description, through the above method, the host computer and the cloud server can both store the relevant information of the devices with IP configuration completed, which is convenient for subsequent query, maintenance and other operations.

[0026] Refer to Figure 2 , the present invention also provides an IP automatic configuration system, including a processor 1 and a memory 2. A program or instruction is stored on the memory 2, and when the program or instruction is executed by the processor 1, the following steps are implemented: S1. Connect the device to be configured to a pre-established local area network and obtain an initial IP. S2. The host computer in the local area network broadcasts the host computer IP to all devices in the local area network. S3. The device to be configured sends the SN data of the device to the host computer according to the received host computer IP. S4. The host computer obtains the configuration IP corresponding to the SN data from a locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the configuration IPs corresponding to them one by one. S5. The device to be configured receives the configuration IP, changes the initial IP to the configuration IP, and completes the IP automatic configuration.

[0027] As can be seen from the above description, the present invention has the following beneficial effects: An IP automatic configuration system provided by the present invention obtains an initial IP by connecting a device to be configured to a pre-established local area network; a host computer in the local area network broadcasts its own IP to all devices in the local area network; the device to be configured sends its SN data to the host computer according to the received host computer IP; the host computer obtains the configuration IP corresponding to the SN data from a locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the corresponding configuration IPs one by one; the device to be configured changes the initial IP to the configuration IP after receiving the configuration IP, completing the IP automatic configuration. Through the above method, when the device first accesses the network, it can automatically obtain an IP address, adapt to different network environments, and the administrator does not need to manually allocate and record IP addresses for each device, nor worry about IP address conflicts or management complexity issues, reducing the workload of network administrators and significantly reducing the configuration time and labor costs.

[0028] Further, when the program or instruction is executed by the processor, the following steps are further implemented: After receiving the SN data, the host computer determines whether the locally preset mapping table contains the SN data. If so, it obtains the configuration IP corresponding to the SN data from the mapping table and sends it to the device to be configured.

[0029] As can be seen from the above description, through the above method, first, it is determined whether the locally preset mapping table contains the SN data, and in the case of containing the SN data, the corresponding configuration IP is obtained to complete the acquisition of the configuration IP.

[0030] Further, when the program or instruction is executed by the processor, the following steps are further implemented: If the mapping table does not contain the SN data, the host computer synchronously sends the SN data and the current IP address of the device to be configured to other host computers in the same local area network; After receiving the SN data, the other host computers determine whether the locally preset mapping table contains the SN data. If so, they obtain the configuration IP corresponding to the SN data, establish a communication connection with the device to be configured according to the current IP address and send the configuration IP to the device to be configured.

[0031] As can be seen from the above description, through the above method, it is applicable to the application scenario where there are more than two host computers in the same local area network. Since more than two host computers can broadcast to all devices in the same local area network, the devices that receive the broadcast will also send SN data to more than two host computers. Under normal circumstances, only the host computer storing the SN data will feedback the corresponding configured IP to the device, thus completing the configuration of the IP. However, it is possible that the host computer storing the SN data is exactly in an abnormal state, such as restarting, crashing, etc., and cannot receive data normally within a short period of time. At this time, when the host computer that receives the SN data determines that it does not store the SN data itself, it synchronously sends the SN data to other host computers in the same local area network, so as to give the host computer that really has the SN data multiple opportunities to receive. The number of synchronous transmissions here can be multiple, and they are sent at intervals of a certain time, which can be specifically set according to actual requirements. Through this method, it can effectively avoid the situation that the IP automatic configuration operation cannot be completed due to the host computer storing the SN data being exactly in an abnormal state. During this process, the host computer that does not store the SN data plays the role of data forwarding, and subsequent configuration of the IP is taken over by other host computers.

[0032] Further, when the program or instruction is executed by the processor, the following steps are also implemented: When the host computer receives the SN data, it obtains the corresponding reception time, and calculates the time difference based on the broadcast time; Judge whether the time difference does not exceed a preset threshold. If not, when receiving the SN data, judge whether the preset mapping table contains the SN data.

[0033] As can be seen from the above description, through the above method, by calculating the time difference as the basis for judging whether the received SN data is valid, the security of data transmission is improved.

[0034] Further, when the program or instruction is executed by the processor, the following steps are also implemented: After completing the IP automatic configuration, generate the corresponding feedback information and send the feedback information to the host computer; After step S5, the following is also included: S6. The host computer receives the feedback information, stores the feedback information and synchronously sends it to the cloud server for storage.

[0035] As can be seen from the above description, through the above method, both the host computer and the cloud server can store the relevant information of the device that has completed the IP configuration, which is convenient for subsequent query, maintenance and other operations.

[0036] The following are several preferred embodiments or application embodiments to help those skilled in the art better understand the technical content of the present invention and the technical contributions made by the present invention compared with the prior art: Preferred Embodiment 1: As Figure 1 shown, an IP automatic configuration method provided by the present invention includes the following steps: S1. Connect the device to be configured to a pre-established local area network and obtain an initial IP. In this embodiment, the device is a building intercom device. A local area network is established through a router, and the host computer is in this local area network. The host computer stores a mapping table, and the mapping table stores a plurality of SN data and the corresponding configured IPs one by one.

[0037] S2. The host computer in the local area network broadcasts the host computer IP to all devices in the local area network. This broadcast uses an existing subnet broadcast method, and existing encryption and decryption algorithms are used during data transmission, which will not be elaborated here.

[0038] S3. The device to be configured sends the SN data of the device to the host computer according to the received host computer IP. S4. The host computer calculates the time difference according to the SN data and the reception time obtained when the host computer receives the SN data, and then according to the broadcast time. Determine whether the time difference does not exceed a preset threshold. If not, then according to the received SN data, determine whether the locally preset mapping table contains the SN data. If so, obtain the configured IP corresponding to the SN data from the mapping table and send it to the device to be configured. Among them, by calculating the time difference, it is used as a basis for judging whether the received SN data is valid, thereby improving the security of data transmission. The specific setting of the preset threshold can be set according to actual requirements.

[0039] If the mapping table does not contain the SN data, the host computer synchronously sends the SN data and the current IP address of the device to be configured to other host computers in the same local area network. Other host computers receive the SN data, determine whether the locally preset mapping table contains the SN data. If so, obtain the configured IP corresponding to the SN data from the mapping table, establish a communication connection with the device to be configured according to the current IP address, and send the configured IP to the device to be configured.

[0040] In the above - mentioned manner, it can be applied to the application scenario where there are more than two host computers in the same local area network. Since more than two host computers can broadcast to all devices in the same local area network, the devices that receive the broadcast will also send SN data to more than two host computers. Normally, only the host computer that stores the SN data will feedback the corresponding configured IP to the device, thus completing the IP configuration. However, it is possible that the host computer storing the SN data is exactly in an abnormal state, such as restarting, crashing, etc., and cannot receive data normally within a short period of time. At this time, when the host computer that receives the SN data determines that it does not store the SN data itself, it synchronously sends the SN data to other host computers in the same local area network, thus giving the host computer that truly has the SN data multiple opportunities to receive. The number of synchronous transmissions here can be multiple, and they are sent at intervals of a certain time, which can be specifically set according to actual requirements. Through this method, it can effectively avoid the situation that the IP automatic configuration operation cannot be completed due to the host computer storing the SN data being exactly in an abnormal state. During this process, the host computer that does not store the SN data plays the role of data forwarding.

[0041] S5. The device to be configured receives the configured IP, changes the initial IP to the configured IP, and completes the IP automatic configuration. After completing the IP automatic configuration, corresponding feedback information is generated and sent to the host computer; S6. The host computer receives the feedback information, stores the feedback information and synchronously sends it to the cloud server for storage. This can enable both the host computer and the cloud server to store the relevant information of the device that has completed the IP configuration, facilitating subsequent query, maintenance, and other operations.

[0042] Preferred Embodiment Two: Refer to Figure 2 This invention also provides an IP automatic configuration system, including a processor 1 and a memory 2. Programs or instructions are stored on the memory 2, and when the programs or instructions are executed by the processor 1, the following steps are implemented: S1. Connect the device to be configured to a pre - established local area network and obtain the initial IP; S2. The host computer in the local area network broadcasts the host computer IP to all devices in the local area network; S3. The device to be configured sends the SN data of the device to the host computer according to the received host computer IP; S4. The host computer obtains the configured IP corresponding to the SN data from the locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the corresponding configured IPs one - to - one; S5. The device to be configured receives the configured IP, changes the initial IP to the configured IP, and completes the IP automatic configuration.

[0043] Further, when the program or instruction is executed by the processor, the following steps are further implemented: The host computer receives the SN data, determines whether the local preset mapping table contains the SN data. If so, it obtains the configured IP corresponding to the SN data from the mapping table and sends it to the device to be configured.

[0044] Further, when the program or instruction is executed by the processor, the following steps are further implemented: If the mapping table does not contain the SN data, the host computer synchronously sends the SN data and the current IP address of the device to be configured to other host computers within the same local area network; Other host computers receive the SN data, determine whether the local preset mapping table contains the SN data. If so, they obtain the configured IP corresponding to the SN data from the mapping table, establish a communication connection with the device to be configured according to the current IP address, and send the configured IP to the device to be configured.

[0045] Further, when the program or instruction is executed by the processor, the following steps are further implemented: When the host computer receives the SN data, it obtains the corresponding reception time, and calculates the time difference according to the broadcast time; Determine whether the time difference does not exceed a preset threshold. If not, when receiving the SN data, determine whether the preset mapping table contains the SN data.

[0046] Further, when the program or instruction is executed by the processor, the following steps are further implemented: After the automatic IP configuration is completed, a corresponding feedback message is generated and sent to the host computer; After step S5, the following is further included: S6. The host computer receives the feedback message, stores the feedback message and synchronously sends it to the cloud server for storage.

[0047] The present invention has been described by the above related embodiments and drawings. However, the above embodiments are only examples for implementing the present invention. It must be pointed out that the disclosed embodiments do not limit the scope of the present invention. On the contrary, modifications and equivalent settings included in the spirit and scope of the claims are all included in the scope of the present invention.

Claims

1. An IP automatic configuration method, characterized in that, It includes the following steps: S1. Connect the device to be configured to a pre-established local area network and obtain an initial IP; S2. The host computer in the local area network broadcasts its IP to all devices in the local area network; S3. The device to be configured sends the SN data of the device to the host computer according to the received host computer IP; S4. The host computer obtains the configuration IP corresponding to the SN data from a locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the corresponding configuration IPs one by one; S5. The device to be configured receives the configuration IP, changes the initial IP to the configuration IP, and completes the automatic IP configuration.

2. The IP automatic configuration method according to claim 1, characterized in that Step S4 further includes: When the host computer receives the SN data, it judges whether the locally preset mapping table contains the SN data. If so, it obtains the configuration IP corresponding to the SN data from the mapping table and sends it to the device to be configured.

3. The IP automatic configuration method according to claim 2, characterized in that Step S4 further includes: If the mapping table does not contain the SN data, the host computer synchronously sends the SN data and the current IP address of the device to be configured to other host computers in the same local area network; After receiving the SN data, the other host computers judge whether the locally preset mapping table contains the SN data. If so, they obtain the configuration IP corresponding to the SN data from the mapping table, establish a communication connection with the device to be configured according to the current IP address, and send the configuration IP to the device to be configured.

4. An IP automatic configuration method according to claim 2, characterized in that, Step S4 further includes: When the host computer receives the SN data, it obtains the corresponding reception time and calculates the time difference according to the broadcast time; Judge whether the time difference does not exceed a preset threshold. If not, when receiving the SN data, judge whether the preset mapping table contains the SN data.

5. An IP automatic configuration method according to claim 1, characterized in that, Step S5 further includes: After completing the automatic IP configuration, generate corresponding feedback information and send the feedback information to the host computer; After step S5, it further includes: S6. The host computer receives the feedback information, stores the feedback information and synchronously sends it to the cloud server for storage.

6. An IP automatic configuration system, characterized in that, It includes a processor and a memory. A program or instruction is stored on the memory. When the program or instruction is executed by the processor, the following steps are implemented: S1. Connect the device to be configured to a pre-established local area network and obtain an initial IP; S2. The host computer in the local area network broadcasts its IP to all devices in the local area network; S3. The device to be configured sends the SN data of the device to the host computer according to the received host computer IP; S4. The host computer obtains the configuration IP corresponding to the SN data from a locally preset mapping table according to the SN data and sends it to the device to be configured; the mapping table stores multiple SN data and the corresponding configuration IPs one by one; S5. The device to be configured receives the configuration IP, changes the initial IP to the configuration IP, and completes the automatic IP configuration.

7. An IP automatic configuration system according to claim 6, characterized in that, When the program or instruction is executed by the processor, the following steps are also implemented: The host computer receives the SN data, determines whether the local preset mapping table contains the SN data. If so, it obtains the configured IP corresponding to the SN data from the mapping table and sends it to the device to be configured.

8. An IP automatic configuration system according to claim 7, characterized in that, When the program or instruction is executed by the processor, the following steps are further implemented: If the mapping table does not contain the SN data, the host computer synchronously sends the SN data and the current IP address of the device to be configured to other host computers within the same local area network; Other host computers receive the SN data, determine whether the local preset mapping table contains the SN data. If so, they obtain the configured IP corresponding to the SN data from the mapping table, establish a communication connection with the device to be configured according to the current IP address, and send the configured IP to the device to be configured.

9. An IP automatic configuration system according to claim 7, characterized in that, When the program or instruction is executed by the processor, the following steps are further implemented: When the host computer receives the SN data, it obtains the corresponding reception time, and calculates the time difference according to the broadcast time; Determine whether the time difference does not exceed a preset threshold. If not, when receiving the SN data, determine whether the preset mapping table contains the SN data.

10. An IP automatic configuration system according to claim 6, characterized in that, When the program or instruction is executed by the processor, the following steps are further implemented: After the IP automatic configuration is completed, a corresponding feedback message is generated and sent to the host computer; After step S5, the following is further included: S6. The host computer receives the feedback message, stores the feedback message and synchronously sends it to the cloud server for storage.