NUTZ-ONEKEY 3.1 内置ngrok 如何使用?
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]