localtunnel.me fixed url regeneration eveytime server restarts
Asked Answered
S

2

5

I am using localtunnel.me (https://github.com/localtunnel/localtunnel) to create a connection to my localhost. I am using the following command at the terminal: lt --port 80 --subdomain test

Everytime I restart the server the url is regenerated to a random server. Is there anyway to get the same url.

Sentimentalize answered 12/11, 2019 at 15:8 Comment(1)
This is a better place to ask: github.com/localtunnel/localtunnel/issuesLobule
P
13

Might be late to answer but --local-host xxx.xxx.x.x --subdomain xxxx --port xxx lets you get the same URL each time. The flags need to be passed in same order.

For example if --subdomain is as follows --local-host xxx.xxx.x.x --subdomain --port xxx dummy_url then you will get https://dummy_url.loca.lt/

Pownall answered 5/5, 2021 at 7:58 Comment(0)
S
10

The other answer is correct in a way, though I tried to answer it in a much simpler way since I spent a lot of time debugging issues with getting the same URL for the Local Tunnel.

Suppose, I want my URL should be something like this:

https://olive-walls-cough-103-181-222-27.loca.lt

You just need to hit the below command:

lt --subdomain olive-walls-cough-103-181-222-27 --port 3000

Now here the order of flags doesn't matter.

I Have attached the image below with the same thing working!

enter image description here

Note: Before hitting this command make sure you have installed the localtunnel globally.

Refer here for more details: https://theboroer.github.io/localtunnel-www/

Slosh answered 11/10, 2022 at 18:39 Comment(1)
This is working for few minutes, after that again start creating dynamic URLs, Is there any permanent way to get only specified URL?Fellner

© 2022 - 2024 — McMap. All rights reserved.