4

When I try to get remote debugging working with IDA, using an Android emulator, I get the following error on the command prompt.

./android_server 
IDA Android 32-bit remote debug server(ST) v1.15.
Hex-Rays (c) 2004-2012 bind: Address already in use

I instead need the following:

./android_server IDA Android 32-bit remote debug server(ST) v1.15.
Hex-Rays (c) 2004-2012 Listening on port #23946...

How do I correct this?

3

The error indicates (exactly what it states) that the android_server application failed to bind to IP address/port. What it means is that the address/port that the android_server is trying to use is most likely already used by other process or application.

Clearly, it is not enough of information to provide you with an exact answer. Please provide detailed information on your setup.

Below is an article of a sample setup for Android debugging with IDA:

Debugging Android Libraries Using IDA

2
  • I followed that exact resource and steps. so how can I solve it? or to be more specific - how can I disconnect it from other process or application? please be specific regarding the exact actions I need to take in IDA and/or Android emulator as I am stack (exchange). I almost succeeded in getting it to work and they trying later with the process and steps I got this error I cannot handle. – user2388 Jul 8 '13 at 6:58
  • Please describe your setup indicating what os you are running, VM, android version, IDA version, etc. What does it mean "I almost succeeded..."? A lot depends on how you ask a question. If you seek specific answer, you have to ask detailed question. – PSS Jul 9 '13 at 2:15
1

You should try a different port. The bind failing simply means there is another application that uses that IP/PORT combination. The only way around such an error would be to modify the source to properly set the socket option to SO_REUSEADDR (Assuming the process using it hasnt defined SO_EXCLUSIVEADDRUSE). But that isnt possible in your case. If you are running on Windows, and have VM available, try a clean install of Windows, otherwise use a tool such as ProcessHacker to see if the port you are trying to use is not already in use.

TLDR: Try a different IP/Port combination.

Also ensure you're running it priviledged.

1
  • he is using android, not windows. – Cream Cracker Jul 10 '13 at 3:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.