You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LambdaTest Tunnel helps in establishing an SSH connection between your local machine and our cloud servers to help you perform tests on locally hosted websites and web-apps. With LambdaTest Tunnel, you can ensure how robust your website rendering is across 3000+ real browsers, even before you make it live on the internet.
44
41
45
42
If due to some unfortunate reason, you are unable to perform [cross browser testing](https://www.lambdatest.com) using LambdaTest Tunnel then this document will help you troubleshoot the most common challenges.
46
43
47
-
* * *
48
-
49
44
Oops !! Facing issue while testing your locally hosted application through LambdaTest Tunnel? Here are a few guidelines for you.
50
45
51
46
Before proceeding, here are some of the common issues:
@@ -61,9 +56,6 @@ Before proceeding, here are some of the common issues:
61
56
-[LT can’t be opened because Apple cannot check it for malicious software](/docs/troubleshooting-lambda-tunnel/#9-lt-cant-be-opened-because-apple-cannot-check-it-for-malicious-software)
62
57
63
58
## 1. Localhost Refused To Connect
64
-
65
-
* * *
66
-
67
59
After configuring the tunnel, you might get into the error similar to the below screenshot:
@@ -75,9 +67,6 @@ For example you might find above error with URL: `https://localhost/demo.html`
75
67
however, URL: `https://localhost.lambdatest.com/demo.html` or `10.0.0.15/demo.html` would definitely work fine for you.
76
68
77
69
## 2. Invalid Host Header
78
-
79
-
* * *
80
-
81
70
While testing an application hosted on your local machine, you may receive an "Invalid Host Header" error message when testing on LambdaTest using a local connection. This error is most commonly caused by a misconfiguration of the application server that causes it to reject non-local connections or reject requests directed at hostnames other than localhost(or any custom one set)
82
71
83
72
Since, web applications are now built with various different kinds of frameworks like angular, react etc; In order to test it using tunnel the command used to run your web app needs to modified in your project manifest file i.e. "package.json"
If you are testing a server that requires IP whitelisting, then you just have to set up a Local Testing connection and whitelist the below few IP’s for the respective domain:
118
101
119
102
`http://ts.lambdatest.com/`<br />
120
103
104
+
- 199.58.84.59 - US East
105
+
- 23.82.88.184 - US West
106
+
- 23.106.34.219 - EU
107
+
- 23.106.54.77 - India
108
+
109
+
:::note
110
+
Below are IPs that will be deprecated soon
121
111
- 3.214.241.254
122
112
- 52.36.84.247
123
113
- 13.126.37.58
124
114
- 3.66.78.89
115
+
:::
125
116
126
117
However be advised, as we are aggressively adding more and more data centers, these IP would be changed, you can see the updated IP’s on this documentation as well.
127
118
128
-
129
119
## 5. Custom Host Name
130
-
131
-
* * *
132
-
133
120
Because of some firewall restrictions, your web application might not be accessible on some other servers even after whitelisting the IP’s and configuring the tunnel, in such case you need to make an entry in the hosts file which is used to map hostnames to IP addresses. With the hosts file, you can change the IP address that you resolve a given domain name. This change only affects your own computer without affecting how the domain is resolved worldwide.
134
121
135
122
This is particularly useful when you wish to see how a website will look like when hosted on a different server without making any DNS changes to your domain.
@@ -145,8 +132,6 @@ Let’s say that you wish to resolve **mydomain.com** to the IP address **10.20.
145
132
10.20.30.40 mydomain.com www.mydomain.com
146
133
147
134
## 6. Enable Verbose Logging
148
-
* * *
149
-
150
135
The `- v` flag enables Verbose logging on the console. You can use this to log the HTTP headers & requests or to debug the LambdaTest Tunnel connection.
151
136
152
137
The requests are also logged into a log file `lt.log` which is created in the same working directory as the LambdaTest Tunnel binary. You can also specify the tunnel log file name using the `--logFile` flag.
@@ -155,9 +140,6 @@ The requests are also logged into a log file `lt.log` which is created in the sa
155
140
156
141
157
142
## 7. LT Can’t Be Opened Because Apple Cannot Check It For Malicious Software
158
-
159
-
* * *
160
-
161
143
Catalina OS users may get the below error from the command line while trying to configure the LambdaTest Tunnel to test their locally hosted web pages:
162
144
"LT can’t be opened because Apple cannot check it for malicious software"
0 commit comments