Can Appium run some test on several real Android devices connected by wifi


I’ve read this tutorial:

to connect adb to smartphone through wifi.

If you want to run some adb command when you have several smartphones connected, you need to specify the ip of the device:
adb -s some command

I think Appium is running some adb command based on the bid of smartphone, not the ip.

So I am pretty sure Appium cannot work with real smartphones connected by wifi.

Can you confirm my thought?
Or is it possible, and if yes, should I do something special with Appium to make it work with wifi connected devices?

Thanks for your help.