sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Failed to connect using remote control using private server #475

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
samsung GT-I5503 (galaxy 5) running android 2.1

What firmware version are you running on the device?
android 2.1

What steps will reproduce the problem?
1. Connect my device via usb then enable usb debugging
1. On Device, Start Private Server and note PORT (52510 for instance)
2. $ adb forward tcp:9999 tcp:52510 
3. $ export AP_PORT=9999
4. $ python
>>> import android
>>> droid = android.Android()

Traceback (most recent call last):
  File "<pyshell#32>", line 1, in <module>
    droid = android.Android()
  File "C:\Python26\android.py", line 34, in __init__
    self.conn = socket.create_connection(addr)
  File "C:\Python26\lib\socket.py", line 547, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
gaierror: [Errno 11001] getaddrinfo failed
>>> 

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
sl4a r3 with the updated android.py

Please provide any additional information below.
i have been following what instructed here on using private server to 
RemoteControl the sl4a : 
http://code.google.com/p/android-scripting/wiki/RemoteControl many times but it 
does not work

Original issue reported on code.google.com by indra....@gmail.com on 11 Nov 2010 at 4:44

GoogleCodeExporter commented 9 years ago
I have the same issue but I just left it.
This time I just command 'adb shell' to remote coding in the phone directly.

$adb shell

#cd sdcard/sl4a/scripts/
#vi mycode.py

then write whatever you want to :)

Original comment by muuusi...@gmail.com on 12 Nov 2010 at 4:56

GoogleCodeExporter commented 9 years ago
Same problem on HTC Incredible (Default HTC Kernel)
Android 2.2
Kernel: 2.6.32.17, Build 149 #1
WindowsXP

python_r7.zip
python_extras_r8.zip
python_scripts_r8.zip
python_for_android_r1.apk

Seems to randomly generate this error or the issue in 
http://code.google.com/p/android-scripting/issues/detail?id=449

Original comment by lance.ea...@gmail.com on 5 Jan 2011 at 9:24

GoogleCodeExporter commented 9 years ago
Please confirm that problem persists on latest sl4a_r4x and python.

Original comment by rjmatthews62 on 17 Mar 2011 at 10:45

GoogleCodeExporter commented 9 years ago
The problem still persists on SL4Ar4 (Nexus On3 running 2.2, with Win7 64)

Original comment by Matthew....@gmail.com on 1 Apr 2011 at 5:09

GoogleCodeExporter commented 9 years ago
Try:
export AP_HOST=localhost

Also, try disabling your firewall.

Original comment by rjmatthews62 on 2 Apr 2011 at 1:21

GoogleCodeExporter commented 9 years ago
Problem still persists on Samsung Galaxy Ace
Android 2.2.1
Windows 7

Original comment by sachin...@gmail.com on 24 Jun 2011 at 4:36

GoogleCodeExporter commented 9 years ago
Pretty sure setting AP_HOST will solve the problem. As I have no updates in 6 
months, I'm closing the issue.

Original comment by rjmatthews62 on 30 Mar 2012 at 1:30