Jump to content
Chapter8, Coachapp.py Error
5 replies to this topic
Posted 01 September 2013 - 03:00 AM
I upload "coachapp.py" to avd. And when i open the file, error comes out like below.
urllib2 URLError: <urlopen error [Errno 111] Connection refused>
I already read the similar questions. And follow the same step to resolve problem.
Change the IP address from 127.0,0.1 to my own IP address found by terminal.
But Still same error statement comes out even though I change the IP address.
Also when I open the website "http://10.5.5.5[for example]:8080/generate_names.py" at my emulator, the error page comes out.
But when I open it at my computer, it works.
I am practicing this steps at virtualbox, could it be a problem?
Posted 24 December 2013 - 05:38 AM
1) Windows7 PC
2) Python3.2 on PC
3) sl4a_r3.apk on AVD (Android device)
4) PythonForAndroid_r1.apk on AVD (Android device)
5) AVD = Android 4.0 (API14)
Starting simple_httpd on port: 8080
127.0.0.1 - - [24/Dec/2013 17:19:49] "GET /cgi-bin/generate_names.py HTTP/1.1" 200 -
127.0.0.1 - - [24/Dec/2013 17:19:50] command: C:\Python33\python.exe -u C:\Python33\HeadFirstPython\chapter8\webapp-chapter8\cgi-bin\generate_names.py ""
127.0.0.1 - - [24/Dec/2013 17:19:50] CGI script exited OK
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users