Sauce Labs Customer Idea Portal

Submit an idea and make Sauce Labs even better!

Allow on device localhost resolution for local proxies

Currently if you enable a Sauce Connect tunnel on an Android device there is no way to allow your application to talk to `localhost` relative to the Android device itself.

I work in the video playback field. Multiple libraries set up local proxies around video content to handle DRM, ad injection or other features. At the moment if you use Sauce Connect and try to use these libraries it will try to resolve `localhost` relative to the tunnel server. So playback will fail.

I would like the ability to configure the device/Sauce Connect to resolve localhost relative to the device itself so it is possible to use local proxies while tunneling other traffic.

  • Guest
  • Jan 30 2019
  • Already exists
  • Attach files
  • Jean Sandberg commented
    18 Jul, 2019 04:57pm

    Hello! I talked to the Sauce Connect developers and they said that the general workaround for this is to map another host name to localhost. if the libraries are configurable to use another host name this would work. You can use 127.0.0.1.xip.io or add a static host that maps 127.0.0.1 to something like `lh` https://www.teepublic.com/hoodie/1668838-there-is-no-place-like-127001