Mikhael9 / android-xmlrpc

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

Problems connecting to server #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
I changed the uri to localhost:8888 in test.java.... and I also started the 
server on localhost by executing the command: "python server.py"... when I try 
to connect I get an error
"error cannot connect to localhost make sure server.py on your development host 
is running"

any ideas?

Original issue reported on code.google.com by rfausak on 10 Dec 2010 at 8:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I might have figured it out. If I understand correctly, you said that you 
accessed http://localhost:8888 from a web browser, and it returned the 
server.py code, verbatim, uninterpreted. Is that correct?

If so, then something is wrong in the way it's being executed (and I only know 
this because I made the same mistake...)

Have you configured an existing web server to respond to port 8888, and placed 
server.py in there as it's default accessed document? I did this, and believe 
me, it doesn't work! :) You need to run the command python server.py which 
should spawn a new, purpose built, web server that replies to a specific set of 
instructions. Anything else should reply with an HTTP 500 error code, hence my 
suspicion that you've configured another web server to reply to port 8888. 
Obviously, I'm happy to be proven wrong!

If my suspicion is wrong, please confirm the operating system you are using for 
your development platform, so I know what to suggest next.

Thanks, Jon

Original comment by jon@sprig.gs on 11 Dec 2010 at 12:48

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
got it.. i guess it was a simple syntax error

Original comment by rfausak on 11 Dec 2010 at 9:35

GoogleCodeExporter commented 8 years ago

Original comment by jon@sprig.gs on 19 Dec 2010 at 12:30

GoogleCodeExporter commented 8 years ago
I seem to be having this same issue. The server is running on localhost:8888 i 
can goto my web browser and point to http://localhost:8888/ and responds with: 

Error response

Error code 501.

Message: Unsupported method ('GET').

Error code explanation: 501 = Server does not support this operation. 

However when I run the app and click on an action, I get "Cannot connect to 
localhost Make sure...." every time. What type of syntax error did you have and 
how did you fix it?

Thanks

Original comment by josh...@gmail.com on 1 Jul 2011 at 4:28

GoogleCodeExporter commented 8 years ago
Josh, can you confirm how you've got to the point where you're running a web 
server on localhost:8888? Have you, from a command line, run python server.py, 
or have you copied the server.py into a pre-configured web server?

Original comment by jon@sprig.gs on 1 Jul 2011 at 7:49

GoogleCodeExporter commented 8 years ago
what version of python do you have installed?

Original comment by rfausak on 1 Jul 2011 at 9:21