Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Miguel Morales
You can use a socket on android, although you must be a client for it to work reliably. You cannot and should not act as a server on the android side. To use a socket, simply connect to the ip of the server you are trying to connect to. On Tue, May 17, 2011 at 1:04 PM, ingy abbas

Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Miguel Morales
You should post your socket code, or provide more information. On Tue, May 17, 2011 at 2:14 PM, ingy abbas ingy.abba...@gmail.com wrote: This what i did and it connect only when i'm using the android emulator but when i use the mobile it did not connect !!any help in this On 17 مايو, 22:42,

Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Tobiah
On 05/17/2011 02:14 PM, ingy abbas wrote: This what i did and it connect only when i'm using the android emulator but when i use the mobile it did not connect !!any help in this Can you browse the web on the mobile? -- You received this message because you are subscribed to the Google Groups

Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Miguel Morales
Just post the code to pastebin and show it here. The more eyes, the better. On Tue, May 17, 2011 at 2:27 PM, ingy abbas ingy.abba...@gmail.com wrote: Sure becaue i;m using wifi so it open a web page On 17 مايو, 23:21, Tobiah t...@tobiah.org wrote: On 05/17/2011 02:14 PM, ingy abbas wrote:

Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Miguel Morales
If your server works fine using the emulator as your client it seems like it's a networking issue, and not a code issue. BTW, DON'T mix network code and UI code. Read: http://developer.android.com/resources/articles/painless-threading.html On Tue, May 17, 2011 at 3:10 PM, ingy abbas

Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Miguel Morales
Make sure your port is open so that outside clients can connect to that port. First, go to a computer outside your network and try to run: telnet 50.0.10.107 54639 When that succeeds, you can continue. On Tue, May 17, 2011 at 3:12 PM, ingy abbas ingy.abba...@gmail.com wrote: so how can i make

Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Miguel Morales
And you tried it from a different computer, right? Not one in your house/office? It does not work from here. On Tue, May 17, 2011 at 3:45 PM, ingy abbas ingy.abba...@gmail.com wrote: its open microsoft telnet command but the 50.0.10.107 54639 Microsoft Telnet 50.0.10.107 54639 Invalid

Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Miguel Morales
I don't know what to tell you. Go to another house, or an internet cafe and try the command there. Like I said, my computer cannot connect, so it's a firewall/network issue. On Tue, May 17, 2011 at 3:59 PM, ingy abbas ingy.abba...@gmail.com wrote: yup in computers it work but in mobile Not !!

Re: [android-developers] Re: Connection between Android phone and python server suggestion

2011-05-17 Thread Miguel Morales
Yep: telnet 50.0.10.107 54639 (all in one line of course) Also, it can't be just ANY port. It has to be the port in which your server is listening to. On Tue, May 17, 2011 at 4:05 PM, ingy abbas ingy.abba...@gmail.com wrote: telnet 50.0.10.107 54639 and the 50.0.10.107 must be the pc IP