Install program on Ubuntu via Zip file
Open a terminal, change to directory with source and type
php -S localhost:8000.
Start local PHP server on Mac
Connect the device per USB. Write adb tcpip 5555 into a terminal. Find out the IP address of the device within the Wifi network.
Type adb connect [IP-address]:5555 into a terminal.
Connect ADB over Wifi on Ubuntu