ehang-io / nps

一款轻量级、高性能、功能强大的内网穿透代理服务器。支持tcp、udp、socks5、http等几乎所有流量转发,可用来访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析、内网socks5代理等等……,并带有功能强大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal.
https://ehang.io/nps/documents
GNU General Public License v3.0
29.73k stars 5.37k forks source link

window客户端启动报错 #1223

Open LovelyPups opened 11 months ago

LovelyPups commented 11 months ago

npc.log输入以下日志: 2023/07/11 10:41:41.034 [I] [npc.go:231] the version of client is 0.26.10, the core version of client is 0.26.0 2023/07/11 10:41:41.035 [I] [control.go:97] Loading configuration file C:\application\nps-client-windows\conf\npc.conf successfully 2023/07/11 10:41:41.131 [I] [local.go:74] start local file system, local path /Users/liuhe/Downloads, strip prefix /web/ ,remote port 19008 2023/07/11 10:41:41.139 [N] [control.go:176] web access login username:user password:1234 2023/07/11 10:41:41.140 [I] [local.go:115] successful start-up of local tcp monitoring, port 2001 2023/07/11 10:41:41.140 [I] [local.go:115] successful start-up of local tcp monitoring, port 2002 2023/07/11 10:41:41.166 [I] [client.go:72] Successful connection with server xx.xx.xx.xx:8024 2023/07/11 10:41:42.147 [N] [local.go:142] try to connect to the server 1 2023/07/11 10:41:42.177 [E] [control.go:290] strconv.Atoi: parsing "": invalid syntax 2023/07/11 10:41:42.177 [E] [control.go:310] strconv.Atoi: parsing "": invalid syntax 2023/07/11 10:41:42.177 [E] [local.go:206] strconv.Atoi: parsing "": invalid syntax 2023/07/11 10:41:42.177 [N] [local.go:142] try to connect to the server 2 2023/07/11 10:41:42.177 [E] [control.go:290] strconv.Atoi: parsing "": invalid syntax 2023/07/11 10:41:42.177 [E] [control.go:310] strconv.Atoi: parsing "": invalid syntax 2023/07/11 10:41:42.177 [E] [client.go:126] strconv.Atoi: parsing "": invalid syntax 2023/07/11 10:41:42.218 [E] [control.go:290] strconv.Atoi: parsing "": invalid syntax 2023/07/11 10:41:42.218 [E] [control.go:310] strconv.Atoi: parsing "": invalid syntax 2023/07/11 10:41:42.218 [E] [client.go:126] strconv.Atoi: parsing "": invalid syntax

jianhuawang commented 11 months ago

不用powershell,用管理员身份运行windows/system32/cmd.exe试试,祝你好运!!

jianhuawang commented 11 months ago

https://github.com/ehang-io/nps/issues/985 参考一下这个问题的解决方案。