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
-~----------~----~----~----~------~----~------~--~---