Launching and stopping appium server programmtically

Hi @Hassan_Radi,

i was able to execute the script by launching the server programmatically.

Just a question: when i changed command.addArgument(“4244”); to command.addArgument(“4724”); it worked.

sbootstrap-port would always refer to the device port where appium server forwards the command?

please help as it would make things much clearer to understand.

Thanks and regards,
M.Karthik