I have an android application which is running on Huawei S7,Android 2.2. It is getting inputs from an arduino board.Arduino Board is connected to the tablet by USB cable.Application is using USB Protocol to connect to arduino.
The application is written for Android 4.1.And it is using a backward compatibility pack to make it runnable on 2.2. We had to use a 2.2 device.But now we have a device with Android 4.3. And when we try to run the same app in 4.3 device it gives an error saying 4567 port already in use. 4567 port is the port used by arduino application to connect with the Android Device(Tablet Application).
How can i find the application which is using the 4567 port?
Is there any way i can free up that port?
My 4.3 device is not rooted. Will rooting do any good in this problem?
netstat
binary is available on your device. It's a command line tool, so you'd either need a terminal app or an ADB connection to use it.netstat --tcp --listening -p
then should list up all listening ports together with the associated "program" (didn't try this on Android, so I'm not sure whether all options are supported. If you can confirm this, I'll write up an answer).lsof
(LiSt Open Files). I wrotenetstat --tcp --listening -p
. Complete different commands, for different purposes (though partly overlapping). Please ty again :) And no, it should not require root to runnetstat
(though the-p
parameter might ask for it, depending on implementation).