The 8700 port is only part of a bigger problem. If you were able to change the port to something else so that each users could have their own ports it still wouldn't work.
DDMS monitors any device or emulator connected to or running on the machine. As soon as a new device is detected, DDMS will connect to all of its VMs. Unfortunately, these VMs only accept one connection, so if you have 2 users, their own DDMS will fight to connect to the VMs. If is possible that user 1 launches an app on a device/emulator for debugging but it is the DDMS of the 2nd users that connect to this app preventing user1 from connecting his/her debugger. To allow multiple users on the same machine, we'd have to change DDMS to allow selective connection to devices (so that user 1 could ignore the devices from user 2). This is not on the roadmap at the moment. Xav On Wed, Feb 3, 2010 at 12:15 AM, Pawel Kapala <[email protected]> wrote: > Hello! > > I am trying to set up multiple Android development environments on > single Linux Debian machine. Everything works fine for one user. But > whenever second user on the same machine tries to launch Eclipse (with > ADT) there is an error displayed, that 8700 port is being used. > Therefore, the second user is unable to debug. I have researched this > issue myself and tried following solutions, but I am yet unsuccessful: > 1) I have changed the DDMS port in Eclipse, for the second user to > 8740 (Window -> Preferences -> Android -> DDMS -> Base local debugger > port). No use: Eclipse still opens 8700 port for listening (showed by > netstat and strace). > 2) I have run the DDMS before running Eclipse, changed the port in it > to be 8740 (File -> Preferences -> Debugger -> Port of selected VM). > Not handy to have DDMS running outside Eclipse, Eclipse still opens > 8700 port for listening. > 3) Tried looking in the source code of ADT, found the reference where > the 8700 port is passed and opened, it looks ok though and leaves me > without a clue. > 4) I have found several similar threads, but none of them helped my > case (piled below for reference): > 4.1) > http://groups.google.com/group/android-developers/browse_thread/thread/4d64e407b1cece52/953fc4fe9a25afdc > 4.2) > http://groups.google.com/group/android-developers/browse_thread/thread/c20d204a48ba9e74/89595408bda14702 > 4.3) > http://groups.google.com/group/android-developers/browse_thread/thread/85ca7f2498e8f89c/e3fd0790c84fa414 > > What am I missing? Could anyone give me a pointer? > > Using: > Eclipse 3.5.1 > ADT 0.95 > Debian Lenny > > > Thanks, > > -- > Pawel Kapala > Tieto Corporation > www.tieto.com > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

