CPC H04L 67/06 (2013.01) [H04L 63/083 (2013.01); H04W 12/06 (2013.01); H04W 80/12 (2013.01); H04W 84/12 (2013.01)] | 19 Claims |
1. A method for sharing data in a local area network, wherein the method is implemented in a first electronic device with a touchscreen, and the method comprises:
receiving, by the first electronic device, first input;
enabling, by the first electronic device, a data sharing function in response to the first input;
establishing, by the first electronic device, a wireless connection to a wireless access point and logging in a first account;
receiving, by the first electronic device from a first port, access request information of a second electronic device forwarded by using the wireless access point, wherein the first port is a serving port for a local area network shared access protocol, wherein the second electronic device establishes a wireless connection to the wireless access point, wherein the second electronic device receives second input, and displays an identifier of the first electronic device on the second electronic device in response to the second input, wherein the identifier of the first electronic device comprises a device icon and a to-be-discovered share name, and wherein the access request information includes a user name and a password that are entered by a user on the second electronic device for a login authentication on the first electronic device;
verifying, by the first electronic device, a validity of the second electronic device based on a validity of the user name and the password that are carried in the access request information; and
when the first electronic device determines that the validity of the second electronic device is successfully verified, allowing, by the first electronic device, the second electronic device to access shared data in the first electronic device.
|