How to check if appium server is running on appium application using java code on windows and mac both?
you have port number which uses appium so use it to check is something listening this port or not.
e.g. with default appium port (Mac):
lsof -n -i:4723 | grep LISTEN
Can u pls provide java code to execute the above command which i can use in my script?