nps icon indicating copy to clipboard operation
nps copied to clipboard

安装完成之后,web管理端打不开,访问端口已放行,但是还不行

Open 5536086 opened this issue 3 years ago • 5 comments

2021/11/20 19:52:46.553 [I] [nps.go:202] the version of server is 0.26.10 ,allow client core version to be 0.26.0 2021/11/20 19:52:46.672 [I] [server.go:200] tunnel task start mode:httpHostServer port 0 2021/11/20 19:52:46.672 [I] [connection.go:71] web management start, access port is 8088 2021/11/20 19:52:46.688 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 8024 2021/11/20 19:52:46.689 [I] [connection.go:62] start https listener, port is 443 2021/11/20 19:52:46.690 [E] [http.go:82] listen tcp 0.0.0.0:443: bind: address already in use 2021/11/20 19:56:04.441 [I] [nps.go:202] the version of server is 0.26.10 ,allow client core version to be 0.26.0 2021/11/20 19:56:04.815 [I] [server.go:200] tunnel task start mode:httpHostServer port 0 2021/11/20 19:56:04.815 [I] [connection.go:71] web management start, access port is 8088 2021/11/20 19:56:04.829 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 8024 2021/11/20 19:56:04.829 [I] [connection.go:62] start https listener, port is 443 2021/11/20 19:56:04.829 [E] [http.go:82] listen tcp 0.0.0.0:443: bind: address already in use 2021/11/20 19:58:04.854 [I] [nps.go:202] the version of server is 0.26.10 ,allow client core version to be 0.26.0 2021/11/20 19:58:04.994 [I] [server.go:200] tunnel task start mode:httpHostServer port 0 2021/11/20 19:58:04.994 [I] [connection.go:71] web management start, access port is 8088 2021/11/20 19:58:05.008 [I] [connection.go:36] server start, the bridge type is tcp, the bridge port is 8024 2021/11/20 19:58:05.009 [I] [connection.go:62] start https listener, port is 443 2021/11/20 19:58:05.009 [E] [http.go:82] listen tcp 0.0.0.0:443: bind: address already in use 1

5536086 avatar Nov 20 '21 12:11 5536086

直接在本地访问http://localhost:8088返回什么呢?本地访问是不涉及是否放行端口。 另外,https管理端口443已被其它程序占用,可以顺便换个端口,看看是否对问题有改善。

tinyluck avatar Nov 21 '21 15:11 tinyluck

应当是启动失败了,netstat查看tcp端口使用情况,设置的对应端口没有被监听,查看日志发现是80端口已被占用,之前部署了nginx

LaoYueHanNi avatar Feb 21 '22 07:02 LaoYueHanNi

如果发现没有启动成功,可以使用nps(.exe) stop,然后运行**nps.(exe)**运行调试,或查看日志(Windows日志文件位于当前运行目录下,linux和darwin位于/var/log/nps.log)

访问服务端ip:web服务端口(默认为8080) 使用用户名和密码登陆(默认admin/123,正式使用一定要更改) 创建客户端

我的是 80和443 被占用,改成其他端口就可以了 image image

snsnsjsn avatar Sep 11 '22 14:09 snsnsjsn

我也遇到了这个问题,在conf/nps.conf 中已经修改了http_proxy_prot和https_proxy_prot。 image 但是运行 nps 命令 依旧提示: [E] [http.go:82] listen tcp 0.0.0.0:443: bind: address already in use

后来发现,安装后的conf 不在从 安装目录下的 conf/nps.conf 中获取,而是从 /etc/nps/conf/nps.conf 获取 The new configuration file is located in /etc/nps you can edit them

zhangsubo avatar Oct 04 '22 13:10 zhangsubo

/etc/nps/conf/nps.conf 在这个位置 把 80 和 443 改掉 可以实现正常访问

soapboss avatar Oct 18 '22 04:10 soapboss