Virtual USB CLI: Start the Server

The server command connects your local machine to the Sauce Labs Data Center where your Real Device Cloud private devices are hosted. You must start this command in its own separate command line terminal, since it acts as a log running continuously.

Required#

--datacenter#

Description: defines the Data Center where your Real Device Cloud private devices are hosted. Possible values: EU or US.

Basic Example (required flags only)
java -jar virtual-usb-client.jar server --datacenter US
Response Example
19:06:10.060 [main] INFO com.saucelabs.vusb.client.Runner - Runner Version 2.0.0
19:06:11.032 [main] INFO com.saucelabs.vusb.client.server.VirtualUsbServer - Initializing vUSB-Server...
19:06:11.038 [main] INFO com.saucelabs.vusb.client.server.VirtualUsbServer - vUSB-Server initialized
19:06:11.039 [main] INFO com.saucelabs.vusb.client.server.rest.WebServer - Starting Virtual USB server on port 33657.
19:06:11.103 [main] INFO com.saucelabs.vusb.client.server.rest.WebServer - Virtual USB server is up.

Optional#

These flags provide additional configuration options.

--serverHost#

Description: specifies a Virtual USB server host. Default value: http://127.0.0.1.

--serverPort#

Description: specifies a Virtual USB server port. Default value: 33657.

--adbPortMin#

Description: specifies a Virtual USB server Android Debug Bridge (ADB) port. Default value: 7000.

--adbPortRange#

Description: specifies a Virtual USB server ADB port range. Default value: 100.

--proxyHost#

Description: specifies a HTTP proxy host.

--proxyPort#

Description: specifies a HTTP proxy port. Default value: 0.

--proxyUser#

Description: specifies a HTTP proxy user.

--proxyPassword#

Description: specifies a HTTP proxy password.

--startUsbmuxd#

Description: starts the usbmuxd server. Default value: false.

Full Example (with optional flags)
java -jar virtual-usb-client.jar server \
--datacenter US \
--adbPortRange 700 \
--adbPortMin 1000 \
--serverHost http://127.0.0.1 \
--serverPort 8080 \
--startUsbmuxd true
Last updated on by Kim