I'm trying to set up localtunnel on Ubuntu, but I keep getting the error :
我正在尝试在Ubuntu上设置本地隧道,但我一直收到错误:
your url is: undefined
/usr/local/lib/node_modules/localtunnel/bin/client:58
throw err;
^
Error: connection refused: localtunnel.me:undefined (check your firewall settings)
at Socket.<anonymous> (/usr/local/lib/node_modules/localtunnel/lib/TunnelCluster.js:47:32)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at emitErrorNT (net.js:1256:8)
at nextTickCallbackWith2Args (node.js:441:9)
at process._tickCallback (node.js:355:17)
I am using Xampp. What could be the issue?
我正在使用Xampp。这可能是什么问题呢?
Thank you all.
谢谢大家。
更多回答
What's the command you're running and options that you're passing?
您正在运行的命令和要传递的选项是什么?
As a matter of seeing if something else works, try telebit.cloud Since you're on Windows you'd have to use npm install -g telebit
and then ./telebit http 3000
(or whatever port xampp is running on). The instructions on the website for Mac and Linux. If that doesn't work either then you know it's most likely a network issue specific to your setup.
为了看看其他方法是否正常工作,可以尝试使用Telebit.Cloud,因为您使用的是Windows,因此必须使用npm安装-g telbit,然后使用./Telebit http 3000(或运行xampp的任何端口)。网站上针对Mac和Linux的说明。如果这也不起作用,那么您知道这很可能是特定于您的设置的网络问题。
try lt --port 3000 --s somename --o
and port to be your port, in example is 3000, because my is 3000, and try this 2-3 times. Error must gone it works for me
尝试使用lt--port 3000--S名称--o和port作为您的端口,例如是3000,因为我的是3000,然后尝试2-3次。错误必须消失,这对我很有效
优秀答案推荐
In ubuntu :
在ubuntu中:
sudo ufw disable
SUDO UFW禁用
Use the above command to disable the firewall
and create your local tunnel using:
使用上述命令禁用防火墙并使用以下命令创建本地隧道:
lt --port 8000
Lt--端口8000
Try running it with sudo
. I had the same issue while executing as the normal user but running it with sudo
helped out. You can also try running it as www-data
试着用sudo运行它。我以普通用户的身份执行时遇到了同样的问题,但使用sudo运行它很有帮助。您也可以尝试将其作为www-data运行
After reading this whole issue I can conclude It is not your pc's fault, but the localtunnel server is under heavy load. You should try again in some time.
读完这一期后,我可以得出结论,这不是你的电脑的错,而是本地隧道服务器负载过重。您应该在以后再试一次。
更多回答
Disabling the firewall is not really a good solution
禁用防火墙并不是一个好的解决方案
It dosn't help me
这对我没什么帮助
This is an incomplete answer. Try improve on the existing answer or provide the different perspective instead of reiterate the same concept. Thank you.
这是一个不完整的答案。尝试改进现有的答案或提供不同的观点,而不是重申相同的概念。谢谢。
我是一名优秀的程序员,十分优秀!