NutzCN Logo
问答 NUTZ-ONEKEY 3.1 内置ngrok 如何使用?
发布于 2546天前 作者 menglinxi 1506 次浏览 复制 上一个帖子 下一个帖子
标签:

NUTZ-ONEKEY 3.1 内置ngrok 如何使用?

3 回复

访问本社区的个人主页,可以下载ngrok.yml,里面有token

NGROK

ngrok:
token: xxxx
port: 8888

这个8888,是要访问的时候带上吗?

http://menglinxi.ngrok.wendal.cn:8888/devices/secend?token=8888&pkg=com.test.app&user=mytest

访问出错

2018-01-02 14:23:10.804 DEBUG 13024 --- [pool-1-thread-3] o.nutz.plugins.ngrok.common.NgrokAgent : read msg = {"Type":"StartProxy","Payload":{"Url":"http://menglinxi.ngrok.wendal.cn","ClientAddr":""}}
2018-01-02 14:23:10.805 DEBUG 13024 --- [pool-1-thread-3] o.nutz.plugins.ngrok.client.NgrokClient : start socket pipe ...
2018-01-02 14:23:11.814 DEBUG 13024 --- [pool-1-thread-3] o.nutz.plugins.ngrok.client.NgrokClient : bab bad!! can't acccess local port

java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method) ~[na:1.8.0_102]
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) ~[na:1.8.0_102]
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_102]
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_102]
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_102]
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) ~[na:1.8.0_102]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_102]
at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_102]
at java.net.Socket.connect(Socket.java:538) ~[na:1.8.0_102]
at java.net.Socket.(Socket.java:434) ~[na:1.8.0_102]
at java.net.Socket.(Socket.java:211) ~[na:1.8.0_102]
at org.nutz.plugins.ngrok.client.NgrokClient.newSocket2Local(NgrokClient.java:258) ~[nutz-plugins-ngrok-1.r.63.jar:na]
at org.nutz.plugins.ngrok.client.NgrokClient$ProxyConn.call(NgrokClient.java:316) ~[nutz-plugins-ngrok-1.r.63.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_102]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_102]

外网地址是默认80 的, 8888指的是内网端口

添加回复
请先登陆
回到顶部