just start appium with certain port e.g.:
start appium as: [appium, --log-level, error, --port, 4725, --bootstrap-port, 5725, --command-timeout, 90, --session-override]
start appium as: [appium, --log-level, error, --port, 4735, --bootstrap-port, 5735, --command-timeout, 90, --session-override]
now you can open 2 drivers one for first instance another one for second one. e.g. for first:
url is:
AndroidDriver: http://0.0.0.0:4725/wd/hub (0.0.0.0 is just mine specific. in your case needed ip)