Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to connect with remote app without good ServerSocket?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ken  
View profile  
 More options Feb 28 2008, 3:25 am
From: ken <keyes...@gmail.com>
Date: Thu, 28 Feb 2008 00:25:26 -0800 (PST)
Local: Thurs, Feb 28 2008 3:25 am
Subject: How to connect with remote app without good ServerSocket?
I found that ServerSocket can't work in Android emulator.

When the Socket client is on a PC, the ServerSocket is on the
emulator, and the ServerSocket is binded with an ip address of the
machine running the emulator,  the ServerSocket won't work.

In the bug list web site, I found the bug report:
http://wiki.droiddocs.net/KB-20071127-016

What is the replacement solution since the latest version of Android
has not fixed this after 20071127?
Anyone can help me since the emulator must serve as a remote service?

Best regards.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Digit  
View profile  
 More options Feb 28 2008, 7:12 am
From: Digit <digit.andr...@gmail.com>
Date: Thu, 28 Feb 2008 13:12:03 +0100
Local: Thurs, Feb 28 2008 7:12 am
Subject: Re: [android-developers] How to connect with remote app without good ServerSocket?

you need to create a TCP or UDP redirection to let your client on the PC
access the server on the emulated device.
for example, if you connect to the emulator's control console, and type
something like:

redir add tcp:5000:6000

this will redirect all connections to your PC's localhost:5000 towards the
emulated localhost:6000

have a look at the emulator documentation for more details (or you could
type "redir help" in the control console)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ken  
View profile  
 More options Mar 2 2008, 2:46 am
From: ken <keyes...@gmail.com>
Date: Sat, 1 Mar 2008 23:46:47 -0800 (PST)
Local: Sun, Mar 2 2008 2:46 am
Subject: Re: How to connect with remote app without good ServerSocket?
Thanks a lot for your help.
I have tried the "redir" command in the telnet, and I tested the
program in the same machine and the ServerSocket worked.

But after i ran my Client on other machines, the Android ip/port
couldn't be found. Does it mean that the Android's listening ip/port
can't be seen by another machine?

What could I do?

On Feb 28, 8:12 pm, Digit <digit.andr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pipex  
View profile  
 More options Apr 10 2008, 4:02 pm
From: Pipex <flala...@gmail.com>
Date: Thu, 10 Apr 2008 13:02:12 -0700 (PDT)
Local: Thurs, Apr 10 2008 4:02 pm
Subject: Re: How to connect with remote app without good ServerSocket?
I have the same problem, i create a ServerSocket to port 2027, I
telnet to the emulator and execute "redir add tcp:2027:2027", i can
connect from localhost, but no from a remote host. It's not a firewall
issue because I turned it off for the test. I'm in a linux machine,
anyone has found a solution for this? Is it a bug?

On Mar 2, 3:46 am, ken <keyes...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yuan.georgie@gmail.com  
View profile  
 More options Apr 10 2008, 11:09 pm
From: "yuan.geor...@gmail.com" <yuan.geor...@gmail.com>
Date: Thu, 10 Apr 2008 20:09:17 -0700 (PDT)
Local: Thurs, Apr 10 2008 11:09 pm
Subject: Re: How to connect with remote app without good ServerSocket?
Yes, I think this is a bug.

My solution is:

1. Enter the Android tools path and run:
    adb forward tcp:2027 tcp:2027

2. Download a tool which named stcppipe and run:
   stcppipe.exe -b 192.168.0.85 127.0.0.1 2027 2027

and you can run your application correctly now.

Regards.

On Apr 11, 4:02 am, Pipex <flala...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
yuan.georgie@gmail.com  
View profile  
 More options Apr 10 2008, 11:10 pm
From: "yuan.geor...@gmail.com" <yuan.geor...@gmail.com>
Date: Thu, 10 Apr 2008 20:10:16 -0700 (PDT)
Local: Thurs, Apr 10 2008 11:10 pm
Subject: Re: How to connect with remote app without good ServerSocket?
by the way, 192.168.0.85 is your IP address.

On Apr 11, 11:09 am, "yuan.geor...@gmail.com" <yuan.geor...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »