How to handle error in Appium: Original error: Cannot find any free port in range 8200..8299?

"How to handle error in Appium: Original error: Cannot find any free port in range 8200…8299?

Hi Brett!

To resolve this error, you need to add the capability systemPort and use the value between 8400 - 8499.

Hope this helps!