[Samsung Galaxy Mini] Doc_cheilvenerdi.org:
From USB to Outside World!

First of all Thanks again (and again) to you for your Quotes to my 3Ds, then Thanks again for this excellent Idea to browse with Android through the PC connection...

I hope now to add some useful Tips to your investigation (I'm a bit skilled on Network's setup - Linux side...) and hope not to say trivial news:

The usbnet driver seems not built-in into the android kernel but the command works anyway... don't know why... probably an external module somewhere else in the system... (? unpredictable behaviour for me...)

You should check that the default gateway really changes from the 3G network to the USB one:

# busybox route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
AA.BB.CC.1 * 255.255.255.255 UH 0 0 0 pdp0
AA.BB.CC.0 * 255.255.255.0 U 0 0 0 pdp0
[color=red]default AA.BB.CC.1 0.0.0.0 UG 0 0 0 pdp0[/color]
#

I don't have usb network up, so I see only my 3G network...

(hei... AA.BB.CC.? are we sharing the same network? ah ah... joking)

..you should see something like

default 192.168.0.1 0.0.0.0 UG 0 0 0 usb0

you'll need this in the latter stage of network setup...

You should not have Network Address Translation setup in the Phone nor you should need it... I'd try first to remove these lines (anyway they don't prevent Phone to PC dialog...)

...

Great! First stage of connection working! but locked to "One To One"...

bit of history: When your PC pings another one... that one pongs your one... eh eh... Ping - Pong... This is NOT a joke...

Now you need to achieve two more goals (one on PC and one on the Phone).

Let's follow a Packet from your Phone Browser when you just Hit 'Enter' for a google search...

The phone tries to resolv the name google into its IP address querying the known DNS server via its Default Gateway (just changed to USBNET)

So the packet is forwarded to 192.168.0.1 (the PC)

The PC receive a Packet not dealing with it.. doesn't know what to do... so the packet is dropped...

The first goal is to tell the PC that it acts as a router and that the routing path is from one network interface (LAN) to the other (USB) and viceversa...

I easy know how to do it with Linux... never tried with WinXP.. you should google for something like IP forwarding WinXP or routing WinXp ecc... (also bridge netwotk WinXp could be helpful)

Say that WinXP is now a router... once received a packet (not for him) it routes it to the other network interface and then to the outside World...

...then it idles waiting for an answer...

The second Goal (I don't know how to do, but it surely related to the command I just saw setprop net.dns1 8.8.8.8) is to look for a "Domain Name Server" reachable from the PC network...

That is: you could be lucky and all immediately works... as is...

...bad luck... and you need to change the Android "DNS resolv conf" to point to the same DNS of the PC connection...

After that (both goals achieved) the answering packet should be able to revert to the PC (which is still waiting and remembering...) from outside... then to USB interface and then to Android Browser for it's Web Rendering Engine...

Hope to be helpful...