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

Apps PC-->Android VPN for HTTP protocol

phinsil6

Lurker
Hi, I am very new to Java coding and android os. But I would like to know if one of my project ideas for the android is feasible. I would like to have communication between Android and a PC. I imagine this would be simple on a LAN network as I could probably setup the droid with some kind of web server and send http get requests to the droid. However, my real question is if this is possible in any way over the internet. I had hopes with something like Logmein's Hamachi but they dont make this yet for android. Does anyone have any ideas or ways that I can do this? FYI, I am mainly only interested in really simple protocols such as telnet or http, and security is not really an issue.
Thanks in advance :)
 
Welcome to AF!

The biggest hurdle you will likely have is addressing/finding the device over the cell network. I think discovering the IP, as well as the finding a port not blocked by the cell carrier will be some hurdles you'll need to overcome.

Android has built in support for Java socket servers though:
ServerSocket | Android Developers

I found this with a google search, so it looks like some people are trying to do it too:
android-http-server - Android HTTP Server - Google Project Hosting

And of course there are some classes from Apache in Android, but I don't know how well they work.
org.apache.http | Android Developers

.
 
thanks for the feedback...
i will certainly give those a shot, once I can figure out how to install android on my ipod. (dont have the cash currently or the will to start up a new cell plan with android phone).

if only logmein made their hamachi product for the android, this would all be a snap. i figured that the hardest part of ALL this would be trying to contact the device on the cellular network. I wonder if some carriers are more lenient than others in terms of port blocking and the like.
 
Awesome, you'll have to let us know how things go as you build it :)

Also, I moved this thread to the App Development section :)
 
Back
Top Bottom