Thank you
On Mar 4, 2:52 am, "[email protected]"
<[email protected]> wrote:
> Hi Lei,
>
> as far as I know you won't have a IP connection to the PC via the USB
> cable connection. You would have to go over WiFi in order to connect
> to your PC.
>
> http://www.deepdroid.com
>
> On Mar 3, 7:48 am, Lei <[email protected]> wrote:
>
> > Hi,
>
> > I have a java server which run on the pc, and a client which run on
> > the G1.
> > Now, G1 is connected to the pc with a usb cable.
>
> > I want to use socket to let them communicate with each other, as what
> > I did in the emulator.
>
> > But now G1 cannot find the server through the ip "10.0.2.2".
> > InetAddress serverAddr = InetAddress.getByName
> > ("10.0.2.2");
> > ClientSocket = new Socket(serverAddr,SERVERPORT);
> > The ClientSocket is null.
>
> > What's the IP of the pc now?
>
> > Thanks.
>
> > Regards,
> > Lei
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---