Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to run different tunnels on the same machine, you need to use additional flags to start them, because multiple tunnels on the same machine require different ports, logfiles and PID files. The required flags are --pidfile--logfile--scscproxy-proxy-port--se-port, and -i, as shown in this example:

...

FlagDescription
--pidfile
A file used to record the process identifier. It can be erased or reused once the tunnel is shut down.
--logfile
The location where Sauce Connect writes its logs. This can be reused or erased once the tunnel is shut down, but since Sauce Labs Support will sometimes request this file if you're having test issues, deleting it automatically isn't a great idea.
--scscproxy-proxy-port
An internal Sauce Connect port. This simply needs to be a free port.
--se-port
The port for Sauce Connect's inbuilt Selenium Relay.  This can be any free port if your test code sends Selenium Commands directly to Sauce Labs.  Otherwise, you'll need to match this port to the port used by the test code that will be using this tunnel.
-i
The tunnel identifier

...