• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to test TCP socket application between Android and Windows

  • Thread starter Thread starter Member1850694
  • Start date Start date
M

Member1850694

Guest
Hi everyone!
I post this question on stackoverflow but one of my friend is recommended this forum so I thought I should make a chance here:

"My task is to create an application wich works as a sensor node. Im ready with sensor part and I have to send the datas with TCP. I found a lot of library to send but I have to test it locally.
My question is: How can I test the connection on Windows if my application is run on the phone?
I read a lot of about it but almost every solution uses Android emulator but I don't want to use it. (It's too slow on my PC) I tried out a program: SocketTest v 2.0.0 (It can be found here:http://sourceforge.net/projects/sockettest/ ) but It isn't work for me, and I don't know what IP address should I use from Android to ping a localhost based server on Windows. "

Thanks for any advice!
Nick
 
You can run a proxy server on your pc and configure android to route http traffic through the proxy server. I use Charles Proxy for debugging mobile traffic. Charles can be configured to intercept ssl traffic and make it available for inspection, which is no small feat!

Use Charles proxy to optimize mobile performance

Sent by Forum Fiend 2
 
Last edited:
Back
Top Bottom