Network accessing method and device

The invention discloses a network accessing method and a network accessing device, which belong to the communication technology field. The network accessing method is characterized in that access information of indicating access of a second terminal to the network can be acquired according , and the access information comprises a service set identifier SSID and an access password; a plurality of destination addresses comprising the access information can be selected in a predetermined multicast address field; according to the plurality of destination addresses, multicast of a plurality of user datagram protocol UDP group broadcast messages to the second terminal can be carried out. Under the action of the first terminal, the access information of indicating the access of the second terminal to the network can be stored in the plurality of multicast addresses comprising the access information, and the access information can be transmitted to the second terminal by adopting the multicast transmission way. The convenient access of the second terminal to the network can be realized, the defect of the weak human-machine interaction caused by the complicated operation can be prevented, and the network accessing efficiency can be improved.