I am stuck on this issue for a long time...I posted a message here a while a go...with no comments...
Just to clarify, I am talking about the appium server, not the driver...
Thanks
how you start appium?
service = new AppiumServiceBuilder().withIPAddress("127.0.0.1").build(); service.start(); . . . service.stop();
String[] command1 = {"sh", "-c", "ps aux | grep 'port "+strAppiumPort+"' | grep -v grep | awk '{print $2}' | xargs kill -9"};try {Runtime.getRuntime().exec(command1);System.out.println("Appium server stopped. Port("+strAppiumPort+")");}catch (IOException e) {e.printStackTrace();}
Thanks dduphornIt looks like it solved the issue