Obtain Wireless Debugging Port Number Programatically

Viewed 191

I need to get the IP address and port listed under wireless debugging option from android app. I found out that the IP address can be obtained from applicationContext.getSystemService(Context.WIFI_SERVICE).connectionInfo. However there doesn't seem to be any way to get the port number from the connectionInfo.

Is it possible to also get the wireless debugging port number programatically?

0 Answers
Related