Examples showing how to start a server;
http://code.google.com/p/android-scripting/wiki/RemoteControl