[RESOLVED] Can i monitor the outgoing packets of other devices on my network?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: [RESOLVED] Can i monitor the outgoing packets of other devices on my network?

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    10

    [RESOLVED] Can i monitor the outgoing packets of other devices on my network?

    I'm writing an application that does certain actions based off of what my iPhone (using WiFi on the same network) is sending data to. I've got the packet-sniffing part down (I can sniff my own packets, from my computer) but i cant seem to catch the packets from my iPhone. It has a static IP and in case it somehow helps i have it set to "192.168.1.106". Any help is appreciated. I don't really care how impractical/difficult it is because this is a rather important project. Thanks in advance

  2. #2
    Join Date
    Feb 2011
    Location
    United States
    Posts
    1,006

    Re: Can i monitor the outgoing packets of other devices on my network?

    You can monitor one of two types of packets: (a) those that are passing directly through a network interface card (NIC) or (b) those being broadcast via WiFi

    For (a) you'd need to monitor packets from a computer upstream of the wireless access point:
    Code:
    Internet <---> MONITORING COMPUTER <---> Wireless AP <---> iPhone
                                                         <---> Your computer
                                                         <---> Other devices on your network
    For (b), you'll need to set a wireless adapter on your computer into promiscuous mode. This obviates the need to have a computer upstream of the wireless AP. This website might be helpful: http://wiki.wireshark.org/CaptureSetup/WLAN. Otherwise,you should be able to Google around for more information.

    Note that you might need a dedicated wireless card for monitoring functions; not sure.

    Also note that it is illegal in most places to listen to traffic that isn't your own. While you seem to indicate you are using the tool to analyze your own traffic, please take care (especially if you set your wireless card into promiscuous mode) that you monitor only traffic on your own network.
    Best Regards,

    BioPhysEngr
    http://blog.biophysengr.net
    --
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center