Click here to Skip to main content
Licence CC (ASA 2.5)
First Posted 20 Nov 2009
Views 12,978
Bookmarked 8 times

Android development FAIL

By DavidSchmitt | 20 Nov 2009 | Technical Blog
After installing the Android 1.5r3 SDK and Eclipse 3.4 with the matching ADT plugin, I soon encountered this error message:[2009-10-16 15:02:09 - ddms]Failed to reopen debug port for Selected Client to: 8700[2009-10-16 15:02:09 - ddms]Address family not supported by protocol family: bindjava.net.
2 votes, 40.0%
1
2 votes, 40.0%
2

3
1 vote, 20.0%
4

5
2.22/5 - 5 votes
μ 2.22, σa 2.20 [?]
A Technical Blog article. View original blog here.[^]

After installing the Android 1.5r3 SDK and Eclipse 3.4 with the matching ADT plugin, I soon encountered this error message:

[2009-10-16 15:02:09 - ddms]Failed to reopen debug port for Selected Client to: 8700
[2009-10-16 15:02:09 - ddms]Address family not supported by protocol family: bind
java.net.SocketException: Address family not supported by protocol family: bind
	at sun.nio.ch.Net.bind(Native Method)
	at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
	at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
	at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(Unknown Source)
	at com.android.ddmlib.MonitorThread.run(Unknown Source)

[2009-10-16 16:29:40 - ddms]Can't bind to local 8600 for debugger
[2009-10-16 16:30:14 - ddms]Can't bind to local 8601 for debugger
[2009-10-16 16:30:14 - ddms]Can't bind to local 8602 for debugger
[2009-10-16 16:30:15 - ddms]Can't bind to local 8603 for debugger
[2009-10-16 16:30:25 - ddms]Can't bind to local 8602 for debugger
[2009-10-16 16:30:25 - ddms]Can't bind to local 8606 for debugger
[2009-10-16 16:30:25 - ddms]Can't bind to local 8607 for debugger
[2009-10-16 16:30:25 - ddms]Can't bind to local 8610 for debugger

As it turns out, the debugger tries to connect to “localhost” which is resolved by Windows Vista via the Windows\System32\drivers\etc\hosts file, which contains the IPV6 address “::1″. Since Android’s IPv6 support is still under development, none of the development tools can cope with it, resulting in above error messages.

Substituting the IPv4 127.0.0.1 as localhost address made it work fine.

License

This article, along with any associated source code and files, is licensed under The Creative Commons Attribution-ShareAlike 2.5 License

About the Author

DavidSchmitt

Founder
http://dasz.at/ -- Software for Humans
Austria Austria

Member


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 1 Pinmembermensfort10:11 5 Feb '12  
GeneralMy vote of 2 Pinmember aphazel 死神1:41 30 Sep '10  
GeneralMy vote of 1 PinmemberSilbaer23:00 8 Sep '10  
GeneralMy vote of 2 PinmemberDmitri Nesteruk7:40 19 Aug '10  
GeneralRe: My vote of 2 Pinmember aphazel 死神1:42 30 Sep '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120210.1 | Last Updated 20 Nov 2009
Article Copyright 2009 by DavidSchmitt
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid