PCAPdroid
PCAPdroid copied to clipboard
Possibility to select an interface the UDP Dumper will be bound to
Use case:
Using the UDP Dumper we'd like to have a look at traffic between an application and its server when the application is connected to Internet through a mobile network. The target device is also connected to a local network using Wi-Fi (no access to Internet through Wi-Fi though). The UDP collector is running on a local machine in the same local network. It's not so complex to change the code and let a user select an interface the UDP Dumper has to be bound to, e.g.
public void startDumper() throws IOException {
mSocket = new DatagramSocket();
+
+ if (mWifiNet != null)
+ {
+ mWifiNet.bindSocket(mSocket);
+ }