The invention discloses a method for implementation of automatic networking between master and slave devices. The method includes: starting two intelligent devices to carry out
HDMI (high-definition
multimedia interface) CEC (
consumer electronics control) connection monitoring, and starting WIFI (
wireless fidelity) connection at the same time; after
HDMI CEC connection between the master and slave devices succeeds, if the master device is successfully connected with an AP (access point) by means of WIFI connection, enabling the master device to send information that the master device is in connection with the AP to the slave device by means of
HDMI CEC; after the slave device acquires the information that the master device is in connection with the AP and the slave device is successfully connected with the AP, establishing network services, and sending a service port and an IP (
internet protocol) address of the slave device to the master device by means of HDMI CEC; after the master device acquires the service port and IP information of the slave device by means of HDMI CEC, adopting a
WIFI network to communicate in a same local network to establish C / S (
client /
server) communication. Therefore, data transfer between the master device and the slave device by means of C / S communication of the local network in WIFI connection can be realized while data transferring capacity of the HDMI CEC is kept to realize notification of device networking conditions and message exchange, and accordingly
automation and quickness in networking of the two devices is realized while reliability in networking of the two devices is guaranteed.