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
30.47k stars 5.5k forks source link

请教下p2p文件传输模式能实现吗? #1060

Open changlizhi opened 2 years ago

changlizhi commented 2 years ago
changlizhi commented 2 years ago
$ cat npc.conf
[common]
server_addr=x.x.x.x:6005
conn_type=tcp
vkey=xxxx
auto_reconnection=true
max_conn=1000
flow_limit=1000
rate_limit=1000
disconnect_timeout=60

[file]
mode=file
server_port=19008
local_path=D:/tt
strip_pre=/web/

在D:/tt/下我有一个test.json文件

changlizhi commented 2 years ago
$cat nps.conf 
p2p_ip=x.x.x.x
p2p_port=6000
web_username=admin
web_password=hostloc
web_port=6003
http_proxy_port=6004
bridge_port=6005

这是服务端配置

ac-sc commented 1 year ago

应该是P2P隧道没有建立成功,所以无法法传输