A first instant messaging terminal (710, 810), comprising: a terminal interacting module that interacts, via an instant messaging application, with a second instant messaging terminal (720, 820) logged into a related account of the instant messaging application, a gateway device information uploading module that uploads gateway device information of the first instant messaging terminal (710, 810) to a messaging server, and a direct connection determination obtaining module that obtains a determination made by the messaging server regarding whether the first instant messaging terminal (710, 810) and the second instant messaging terminal (720, 820) can connect directly to each other, the determination made based on the gateway device information of the first instant messaging terminal (710, 810) and the second instant messaging terminal (720, 820), the first instant messaging terminal (710, 810) being connected to a local area network on which the gateway device is located, the terminal interacting module comprising: a sharing request unit that transmits a data-sharing request to the second instant messaging terminal (720, 820), a response-obtaining unit that obtains a response permitting data sharing transmitted from the second instant messaging terminal (720, 820), the response comprising an ID collection associated with at least one shareable data resources, the ID collection comprising at least one data resource ID, a data-requesting unit that transmits a data-reading request to the second instant messaging terminal (720, 820), the data-reading request comprising at least one data resource ID, a data-obtaining unit that obtains a data resource transmitted from the second instant messaging terminal (720, 820), the data resource corresponding to the data resource ID in the data-reading request. a terminal interacting module that interacts, via an instant messaging application, with a second instant messaging terminal (720, 820) logged into a related account of the instant messaging application, a gateway device information uploading module that uploads gateway device information of the first instant messaging terminal (710, 810) to a messaging server, and a direct connection determination obtaining module that obtains a determination made by the messaging server regarding whether the first instant messaging terminal (710, 810) and the second instant messaging terminal (720, 820) can connect directly to each other, the determination made based on the gateway device information of the first instant messaging terminal (710, 810) and the second instant messaging terminal (720, 820), the first instant messaging terminal (710, 810) being connected to a local area network on which the gateway device is located, the terminal interacting module comprising: a sharing request unit that transmits a data-sharing request to the second instant messaging terminal (720, 820), a response-obtaining unit that obtains a response permitting data sharing transmitted from the second instant messaging terminal (720, 820), the response comprising an ID collection associated with at least one shareable data resources, the ID collection comprising at least one data resource ID, a data-requesting unit that transmits a data-reading request to the second instant messaging terminal (720, 820), the data-reading request comprising at least one data resource ID, a data-obtaining unit that obtains a data resource transmitted from the second instant messaging terminal (720, 820), the data resource corresponding to the data resource ID in the data-reading request. a sharing request unit that transmits a data-sharing request to the second instant messaging terminal (720, 820), a response-obtaining unit that obtains a response permitting data sharing transmitted from the second instant messaging terminal (720, 820), the response comprising an ID collection associated with at least one shareable data resources, the ID collection comprising at least one data resource ID, a data-requesting unit that transmits a data-reading request to the second instant messaging terminal (720, 820), the data-reading request comprising at least one data resource ID, a data-obtaining unit that obtains a data resource transmitted from the second instant messaging terminal (720, 820), the data resource corresponding to the data resource ID in the data-reading request.