Is IPv6 over the wifi interface supported in the SDK?

by Michael Newton » Wed, 21 Apr 2010 11:32:03 GMT

Sponsored Links
 I'm hearing that IPv6 is supported by android, at least over the wifi
interface, but I cannot do anything with IPv6 through the SDK at all.
I am running Android 2.1 on an N1.

I can see that at the OS level, the wifi interface has a link local
inet6 address:

ufo:~ newton$ adb shell
$ cat /proc/net/if_inet6
00000000000000000000000000000001 01 80 10 80       lo
fe80000000000000022376fffe8d1e63 0c 40 20 80     eth0

... although ifconfig does not show it:

$ ifconfig eth0
eth0: ip mask flags [up broadcast running

If in Java I call getInetAddresses on a, I
only get the inet4 address.

As I'd expect from the above, I cannot connect via any Java APIs to
another link local IPv6 host on the same wifi lan

Depending on my approach I get "socket level is invalid", a bad socket
options error, host unreachable, or timeouts. Has anyone seen this
work or have any insight?



Other Threads

1. RelativeLayout breaks the paradigm of ViewGroup with onMeasure and onLayout

RelativeLayout does exactly what the documentation says it should be
doing. The size and position is are assigned in onLayout(). Here is
the code:

    protected void onLayout(boolean changed, int l, int t, int r, int b) {
        //  The layout has actually already been performed and the positions
        //  cached.  Apply the cached values to the children.
        int count = getChildCount();

        for (int i = 0; i < count; i++) {
            View child = getChildAt(i);
            if (child.getVisibility() != GONE) {
                RelativeLayout.LayoutParams st =
                        (RelativeLayout.LayoutParams) child.getLayoutParams();
                child.layout(st.mLeft, st.mTop, st.mRight, st.mBottom);


It's just using cached values computed in onMeasure(), which does not
go against the concepts of ViewGroups as defined by the javadoc.

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


2. @ Android-Dev-Team: Request for AsyncTask.getThread() method

instead of joining threads... u need to use a handler and a thread... n keep
sending msgs from the thread to the handler...
the handler jus reads the message say for the amt of progress n updates d
progress bar accordingly...
i think this mght help u... jus try it out...

Samuel Goldwyn<>
- "I'm willing to admit that I may not always be right, but I am never


3. Getting Pixel color values of the canvas

4. Ok button on AlertDialog should work as back button

5. How to compile android project at command line

6. @ Android-Dev-Team: Request for AsyncTask.getThread() method

7. Ok button on AlertDialog should work as back button