ServDroid is an small web server (currently under development) for the Android platform [1]. At the moment version 0.1 can only be downloaded from this blog, but the future versions will be available in Android Market
If anybody has ideas or opinions they will be welcome.
Features
- Version 0.1 only serve HTML pages (PHP implementations will be considered for in future versions).
- Log of all request are saved in the Android database. This information can be dumped to a text file.
- ServDroid can be configured to vibrate when a request is received.
- Version 0.1 is not open source, but from version 0.1.x the source will be available under Apache licence.
- The 404 error page can be personalised.
- This version is only available in English. Later versions will be available in Spanish, Italian and French (if you would like localise the application for your own language feel free to send me the localized XML file).
Screenshots
References
February 18, 2010 at 7:27 pm |
I have downloaded ServDroid on my Nexus One and it only seems to work the first time I connect to it.
On the second and all subsequent times I connect I get a 404 error. This is regardless of whether I connect from inside the Nexus One or from my laptop using WiFi connection.
I then tried to uninstall and reinstall it and now I get an Error starting process.
Any ideas? This could be a great product, I am just trying to get it to work reliably.
February 18, 2010 at 7:40 pm |
One more thing, I noticed that when I uninstalled ServDroid it did not erase the directories on the SDCard. So I did it manually. Then when I reinstalled the ServDroid it did not seem to create the directories again.
February 19, 2010 at 10:57 am |
Hello!
The problem that you mentioned is probably because the folder /sdcard/servdroid/ was removed and when you start the server, it can not find the root folder at /sdcard/servdroid/var/
I will add a check function in a future version to see if the folder exists and if not, ServDroid.web will create one.
Try to install version 0.1.2, because version 0.1 is very unstable.
You can download it from here or from Android Market.
I think version 0.2 will be available in around two weeks.
With regards to your aother comment, this is a feature, the folder is not removed automatically because the user might have contents that he/she may want to conserve.
If you have any more feedback, it will be very welcome.
Regards.
February 28, 2010 at 11:57 pm |
force close in 0.1.2 when port number out of range.
March 1, 2010 at 12:46 am |
OK, I will add a check function to check the port number
Regards.
April 8, 2010 at 8:58 pm |
PHP support ?
April 9, 2010 at 12:08 pm |
There is a possibility but the Apache source has to be modified and recompiled. I don’t know when I will have time to implement this.
Now we are working to implement Servlet technology on ServDroid.web.
If anybody wants to collaborate, visit http://code.google.com/p/servdroidweb/
April 20, 2010 at 7:22 am |
Hi.,.
Any news/ update for version 0.2 release?
April 20, 2010 at 10:02 am |
I am implementing Servlets and waiting for translations…
June 1, 2010 at 3:23 pm |
Hi!
It’s a great project!
What news about php implementations?
June 9, 2010 at 9:46 pm |
At the moment, this project is moving slowly, because I am alone on this project and there are other issues that require my attention (if anybody wants to collaborate, their help is welcome)
To implement PHP, Apache must be compiled with modified modules to be able to run under Android OS (In theory)
June 18, 2010 at 9:50 am |
We waiting for php support 🙂
August 24, 2010 at 10:26 pm |
Nice!
September 15, 2010 at 4:51 am |
Make it root compatible so we can open ports < 1024.
September 16, 2010 at 7:53 pm |
Can this run in a chroot environment? (presume that the device has been rooted)
September 16, 2010 at 7:58 pm |
Not yet 😉
December 11, 2010 at 7:13 am |
[…] I get off the net, I’m going to try to get servDroid working. This package may be useful, in any case, it’ll be interesting. Having a web server […]
February 17, 2011 at 9:42 pm |
I need it running on port 80, is it possible?
February 18, 2011 at 4:54 pm |
Yep, I will add this feature. If you need it now, you can go here and download the code:
https://code.google.com/p/servdroidweb/
February 28, 2011 at 12:49 am |
How is it possible to run on port 80.
I downloaded latest version from https://code.google.com/p/servdroidweb/
but when i change the port to 80 it just changes it right back to 8080?!
best regards
April 26, 2011 at 12:27 am |
Ok, I fixed it, now you can run ServDroid.web on port 80, but you need a rooted phone
April 26, 2011 at 11:21 am |
Thanks a lot! This is so much appriciated..
Best regards,
tuxor
April 26, 2011 at 12:04 pm |
Hello again, sorry to bother.
But when I set it to port 80 the server refuse to start ie. its not getting su permissions automatically from superuser app,
Do I need to start it with a terminal commandline, and if so can you provide me with a simple command to start it?
I tryid looking around for the “exe” to sodu it but I’m confused with the android way of doing thlngs, not very compareble to ordinary way of doings things in other os’es, or is it? Heh.. Some simple guidiance would make me a happy and hopefully a wiser noob. Heh.. Again thanks for making this great app, and your kind reply’s and help..
tuxor
October 31, 2011 at 2:10 pm |
Hello, I’m really interested in your project, you can find a lot of server for the Android plateform but most of the apps with a php implementation aren’t free. I’d like to localize your app for my country so my question is which xml file am i supposed to modify and will the app still be free after the php implementations?
Thanks.
October 31, 2011 at 2:46 pm |
Right now, the PHP implementation is stopped due to the lack of time 😦
If you want to translate this app, you need the following file http://code.google.com/p/servdroidweb/source/browse/trunk/ServDroid/res/values/strings.xml
If you will translate it, I will add the file to the app and upload a new version!!
October 31, 2011 at 3:16 pm
Hi,
I noticed that every version above 1.3 has a nasty habit of crashing randomly every 2-3 days. 😦
Also port 80 still does not work due to servdroid not asking for SU permission. I tried writing but got no answer so with your recent comment on time lack this project seems pretty dead unless someone else picks it up. I totally understand that there are other things in life that play in so I’m not nagging in any way. It’s just such a shame to see this great application go dead. It’s really the best web server for the android platform every other webserver
October 31, 2011 at 3:28 pm
only supports webapps. There is still no server like this that just serves pages without alot of bs.
I actually use it daily, but unfortunately on port 8080, and I also had to revert back to v1.3. Anyways thanks for making this, I hope it some day matures to run on port 80, and php well that would be awesome! Btw sorry about the double post I pressed the wrong button on my iPhone, the buttons are so damn small.
I’m hosting XBMC related guides and small programs for it, if anyone wants to have a look go here: http://81.161.149.87:8080/
All the best tuxor
October 31, 2011 at 5:01 pm
I will take a look at this problem (the one that after 2-3 days crashes), if the it happens again, send me the bug report please :p
I would like to continue this app, but there are no enough support 😦
I will consider to continue the app and add some new stuff, you can add here some requests!
October 31, 2011 at 5:33 pm
Do you mean the log?
Because my bug reports are pretty simple every version above 1.3 just crashes after a while running sometimes 1 day sometimes 2 or or sometimes even multiple times a day, and sometimes it just exits other times I get the message that the app crashed 😦 It’s really wierd I maybe think it happened when I added the front page, I think I’ll try make a simpler one and see if it still happens with the later versions. It’s just odd that there’s no problems with the 0.1.3 version. It’s been running for weeks on end without a hitch. What about the port 80 issue, is there anything you can do to invoke the superuser app? Or is there anything I can do to start it in SU mode, maybe from a shell or something, it would really be great. Thanks again for taking time to answer. Btw if it was on the google market I think it would get a much larger user base, I had to search quite sometime to find this great app.
Again all the best. tuxor.
October 31, 2011 at 5:43 pm |
It is already on the Android market (https://market.android.com/details?id=org.servDroid.web&hl=en)
I will try to create a new version and find the bug! 🙂
October 31, 2011 at 5:56 pm |
Oh, sorry I did not know that. I’m really surprised that there isn’t more interest! 😦
October 31, 2011 at 5:58 pm |
Don’t forget the port 80 issue, or is there nothing that can be done?
Or am I just an idiot who can’t figure it out?!
October 31, 2011 at 6:13 pm |
I need to investigate it a bit more, but it is possible 🙂
December 5, 2011 at 4:56 pm |
Herby is the beta version of servDroid 0.2, Try to download it form this url and give me a feedback.
http://code.google.com/p/servdroidweb/downloads/detail?name=ServDroid.web-0.2-beta.apk&can=2&q=#makechanges
I ran it for more than 3 days and right now it doesn’t crash.
I also added some extra features and now works properly with rooted devices.
December 5, 2011 at 5:19 pm |
I get an error with 0,2b saying the program can not be installed on this device. damn I was really looking foward to this, could it be because i am stuck on android 1.6? 😦 can it be fixed . or is it to much to ask.
Thanks and best regards tuxor
December 5, 2011 at 9:14 pm |
Ok, try the beta 2 here
http://code.google.com/p/servdroidweb/downloads/detail?name=ServDroid.web-0.2-beta2.apk&can=2&q=#makechanges
December 5, 2011 at 11:05 pm |
Hi Again,
Sorry to say that I get the same error. ;(
Best regards tuxor
December 6, 2011 at 12:27 am |
Try to uninstall the old version first, the signatures are different (because this beta version is just for testing)
December 22, 2011 at 8:48 pm |
Hola Joan,
Te escribo desde Barcelona y sobre todo, te felicito por una aplicación realmente estupenda. Aunque probablemente no esté preguntando la pregunta correcta, ahà va: hay alguna manera de tener un servidor DNS con tu aplicación? Me gustarÃa que una vez conectados, los que estén conectados, puedan meterse en cualquier web, pero que les salga siempre la misma home.
Perdona si la pregunta es obvia!
Un saludo,
Alex
December 23, 2011 at 11:18 am |
Hola Alex!
Si que se puede poner, pero la aplicación ServDroid no tiene ninguna opción para hacerlo, por lo que tienes que buscar alternativas…
Puedes crear una aplicación que interaccione con el servicio de ServDroid (para la version 0.2.x) para ver cuando esta iniciado y registrar tu ip en el servidor DNS. Para poder comunicarte con el servicio de ServDroid.web necesitarás implementar el siguiente
código. El problema es que no he creado ninguna wiki que explique como utilizar los servicios de ServDroid.web… intentaré hacerlo lo antes posible.
Si quieres, te puedo ayudar a implementar los servicios, simplemente pregunta 😉
December 26, 2011 at 12:55 pm
Muchas gracias por tu respuesta Joan. La verdad es que estoy buscando mucho una solución pero no la encuentro. Lo que me gustarÃa hacer es lo siguiente: 1) poner el telefono en modo Zona Wifi sin conectarme a 3G u otra fuente de internet 2) ejecutar tu servidor 3) permitir que la gente se conecte y lo más importante 4) que cualquier persona conectada, ponga la web que ponga en su dispositivo, le salga mi index.html. De esa manera, todos los que se conecten e intenten surfear, se encuentran con mi página principal.. no me queda claro exactamente como hacerlo o si se puede hacer con tu servidor… tendrÃas alguna idea por donde mirar? Moltes gracies! Alex
December 26, 2011 at 1:15 pm |
Hola!
Para el paso 4, yo te recomiendo que personalices la pagina de error (/sdcard/servdroid/var/www/error/404.html) y le pongas un pequeño javascript para que te redirija en caso de error a la pagina de inicio. Este ejemplo seguramente te ayudara 🙂
http://www.tizag.com/javascriptT/javascriptredirect.php
Ya dirás algo si ha dado resultado!
April 13, 2012 at 5:26 pm |
Hi,
I’m looking for a web server which can redirect all web traffic to its home page. So that when someone connects to my hotspot and types in google.com it will only go straight to this web server and home page.
Could you add a feature like that ??
Thanks,
Sean
April 16, 2012 at 10:45 am |
Hi!
What you are asking for is nothing related with the web services, this is more related to the rooting process.
What you can do is with iptables, redirect all the web traffic to the localhost and then edit the default 404 error with a javascript that redirects the user to the page you want (http://www.tizag.com/javascriptT/javascriptredirect.php).
I hope it was useful.
January 15, 2014 at 5:15 am |
Great webserver app! Imusing on Google Nexus 7 (2013) & Sony Xperia Z without issues. Although would be great to have php functionality. So it knows what to do with .php files 😦
The work you have done so far is fantastic. Rough around the edges, but it acts like Apache.
January 15, 2014 at 10:42 am |
There are other apps that run PHP, I do not have the time to implement that 😦 If someone would help me it will be different :p