In Windows, Wireshark packet capture software is used to intercept iPhone network data communication.

Source: Internet
Author: User

Network communication is required to transmit data for apps developed on iPhone iOS and Android systems. Sometimes developers may need to capture packets to understand what data the application is transmitting and whether the data is correct. Today, we will introduce how to use Wireshark, a well-known packet capture tool, on Windows operating systems, to intercept network communication data between iOS devices and Android devices such as iPhone and iPad.

First, let's first understand what Wireshark is:Wireshark(Formerly known as ethereal) is a network packet analysis software. The function of the network packet analysis software is to capture network packets and display the most detailed network packet information as much as possible. -[From: Baidu encyclopedia].

We cannot capture the data transmitted by the iPhone directly on the iPhone. So my idea is to install a Wireshark packet capture software on Windows, and this computer has a wireless network card. Then I set the wireless network card of the Windows computer to a wireless router, and then connect the virtual wireless router with the iPhone. In this way, all the data transmitted by the iPhone will be sent to the wireless network card of our windows computer. Then we can use Wireshark to capture packets to obtain all the network data of this wireless network card, this includes the network communication data of our iPhone. Through my practical tests, this idea is completely feasible. Here we need to use two software: Wireshark mentioned above, and connectify hotspot software that can transform the wireless network card of a computer into a shared wireless router.

First download and install Wireshark [] and connectify hotspot [].

Install connectify hotspot and Wireshark

After the download is complete, double-click connectify hotspot to install it. During the installation process, restart it. After restarting, The connectify hotspot window will pop up on the right side of the screen. First, put connectify hotspot aside and install Wireshark.

Set connectify hotspot as a Wireless Router

Open the connectify hotspot window in the lower-right corner and setPasswordWait until the password is verified on the iPhone. SecondInternet to shareTo select a wireless network card for a Windows computer, what I show here isWi-Fi. ThenShare overSelectWi-Fi. The following is the encryption method, which is the same as setting the wireless router encryption method. The default wpa2 is used here. Then clickStart hotspotButton to convert the wireless network card of the Windows computer into a wireless router. For example:

IPhone connection connectify hotspot

After connectify hotspot runs successfully, open the iPhone and enterSet-Wireless LAN. Here we will see a new wireless network namedConnectify-me. Click it and enter the password we set on connectify hotspot to connect. For example:

After the connection is successful, you can open the browser on the iPhone and try to open a webpage to see if it can be opened. If it can be opened, it means it is successful.

Use Wireshark to capture iPhone Network Communication Data

Now you can start working. Run Wireshark and clickInterface listTo see which Nic is sending and receiving data packetsPacketsThat one can be seen. Click Select in front of the network card, and then clickStartClick to start packet capture. For example:

Now you can run various network applications on the iPhone. Wireshark can intercept any data as long as they have network communication. For example, I used the iPhone browser safari to access the connectify website and the HTTP packet captured by Wireshark. I usedHTTPFilter, only show all HTTP packets.

I hope this article will help iPhone and Android Developers who need to capture packets and Analyze network data transmitted by applications.

Link: http://www.phonebaike.com/apple/20130119_332.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.