Skip to content

Commit f2eaee0

Browse files
committed
docs/sc5: move localhost config to localhost spec
Config guide is not the right place for that. This improves the structure.
1 parent 9ffdfcc commit f2eaee0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/secure-connections/sauce-connect-5/guides/configuration.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -492,16 +492,6 @@ You can persist Sauce Connect Proxy environment variables by adding them to one
492492
</TabItem>
493493
</Tabs>
494494

495-
## Configuring Mobile Devices for testing `localhost` {#sc5localhost}
496-
497-
Testing with the address `localhost` (or the IP address `127.0.0.1`) is not supported with iOS or Android real devices in Sauce Connect.
498-
499-
To work around this, you'll need to edit your `hosts` file on the machine on which you are running Sauce Connect. Add an entry for a placeholder hostname (such as `localtestsite`) and the IP address `127.0.0.1`. Requests for `localtestsite` in your tests will then be sent through your Sauce Connect tunnel to `localhost`, which is the machine on which you are running Sauce Connect.
500-
501-
For example, adding `127.0.0.1 mockserver` to your `/etc/hosts` file, then starting a server on `localhost:3333` will route mockserver:3333 HTTP calls to your local server. Mobile tests using Sauce Connect will then be able to find your local server regardless of the nature of your test.
502-
503-
For tips on how to edit your `hosts` file, see [How to Edit Hosts File in Linux, Windows, or Mac](https://phoenixnap.com/kb/how-to-edit-hosts-file-in-windows-mac-or-linux).
504-
505495
## More Information
506496

507497
- [Sauce Connect Proxy Quickstart](/secure-connections/sauce-connect-5/quickstart)

docs/secure-connections/sauce-connect-5/specifications/localhost-ports.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Sauce Connect 5 localhost ports
44
sidebar_label: Localhost ports
55
---
66

7-
## Ports for proxying localhost traffic
7+
## Ports For Proxying Localhost Traffic
88

99
The following commonly used browsers and ports are subject to change as new versions are released.
1010

@@ -27,4 +27,14 @@ On Android devices, ports 5555 and 8080 cannot be used with Sauce Connect Proxy.
2727

2828
:::note Using `.local` domains
2929
Using [Bonjour / ZeroConf](https://developer.apple.com/bonjour) for hostnames on a local network does not work on Safari 15 and above.
30-
:::
30+
:::
31+
32+
## Configuring Mobile Devices For Testing `localhost`
33+
34+
Testing with the address `localhost` (or the IP address `127.0.0.1`) is not supported with iOS or Android real devices in Sauce Connect.
35+
36+
To work around this, you'll need to edit your `hosts` file on the machine on which you are running Sauce Connect. Add an entry for a placeholder hostname (such as `localtestsite`) and the IP address `127.0.0.1`. Requests for `localtestsite` in your tests will then be sent through your Sauce Connect tunnel to `localhost`, which is the machine on which you are running Sauce Connect.
37+
38+
For example, adding `127.0.0.1 mockserver` to your `/etc/hosts` file, then starting a server on `localhost:3333` will route mockserver:3333 HTTP calls to your local server. Mobile tests using Sauce Connect will then be able to find your local server regardless of the nature of your test.
39+
40+
For tips on how to edit your `hosts` file, see [How to Edit Hosts File in Linux, Windows, or Mac](https://phoenixnap.com/kb/how-to-edit-hosts-file-in-windows-mac-or-linux).

0 commit comments

Comments
 (0)