Hi, I can see the data in wireshark trace but the same is not received by application. here is the setup I am using: Access Point Detail (Router) Subnet Mask : 255.255.255.0 Default Gateway : 192.168.1.1 Device connected to Access Point:
So my application(Devloped in c++ and C#) running on PC(UDP) can only see the data coming form Adapter 1 and do not see any data from Adapter 2, whereas wireshark can see data from both the adapter. How can my application can receive data from both the adapter like wireshark does. asked 26 Mar '14, 10:14 Shanky edited 26 Mar '14, 10:28 grahamb ♦ |
One Answer:
My Q+D answer: Reading the data from the adapters depends completely on how you've coded your application so that it will get data from both adapters. That is,you have to use the proper library calls to open/read from each of the adapters. How Wireshark reads from the adapters is not relevant with respect to your application program. answered 26 Mar '14, 10:27 Bill Meier ♦♦ |
To expand a little on Bill's comment, your app will need to bind to both IP's or listen on the 0.0.0.0 (all IP's) address.
But this is nothing to do with Wireshark as that uses completely different methods to capture traffic as opposed to a socket using app.
To add my two cents...
What is the output of the following command if you run it in an elevated
DoSDOS box (I assume Windows because of C#).Locate the line(s) with the port number of your application and post those lines here or draw your own conclusions from that output.
Q+D ??
= Quick and Dirty
obvious, now that you mention it ;-)