Re: [android-developers] android client, pc server (JAVA) can't open TCP connection

2010-06-23 Thread David Turner
On Mon, Jun 21, 2010 at 1:40 PM, xuxu wrote: > HI all, > I'm trying to open tcp connection between android (emulator) and PC. > I'm trying to create a new socket and then it crash. > the line where it crash: > Socket s = new Socket("10.0.2.2", 27015); // trying to open a socket > Can some one p

Re: [android-developers] android client, pc server (JAVA) can't open TCP connection

2010-06-23 Thread Miguel Morales
Although I personally haven't done this, I believe the solutions is to forward the port using the redir command inside the emulator. Some quick googling provides some examples like: http://www.blog.droidweb.com/2009/08/developers-tip-7-android-emulator-networking/ On Mon, Jun 21, 2010 at 1:40 PM,

[android-developers] android client, pc server (JAVA) can't open TCP connection

2010-06-23 Thread xuxu
HI all, I'm trying to open tcp connection between android (emulator) and PC. I'm trying to create a new socket and then it crash. the line where it crash: Socket s = new Socket("10.0.2.2", 27015); // trying to open a socket Can some one please please help me. thanks -- You received this message