0

I have an Android application which will connect to a specific IP address and port number. I use a LG device for testing my application and I have connected my device to the internet.

My question: How can I identify that my application has been connected to my target IP address and port number? Is there any command in adb which can show me my application's connections to an IP address on the device?

I am using adb shell netcfg, but I can not find anything about my application connection to my target IP! Is adb shell netcfg command is a suitable command for this purpose or there is a problem about my application and it has not been connected to my target IP address at all? In addition, when I want to use this command in Sumsung S6, I got this error:/system/bin/sh: netcfg: not found. So I think this command is not a perfect solution.

Stateless
  • 293
  • 2
  • 4
  • 18

0 Answers0