PCAPdroid icon indicating copy to clipboard operation
PCAPdroid copied to clipboard

Possibility to select an interface the UDP Dumper will be bound to

Open tss008 opened this issue 9 months ago • 6 comments

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);
+        }

tss008 avatar Oct 11 '23 20:10 tss008