Skip to content

希望在 -server 参数下额外增加p2p 服务端与客户端的连接方式 #335

Description

@hyjk555

最近发现个使用场景:
服务端无公网IP。无法实现端口映射。客户端就无法与服务端建立联系。

但是用p2p 组网的相关工具,发现能通讯正常。比如:easytier
大概流程是:服务器连接dht 网络,客户端通过dht 网络获得服务器信息进行 nat 打通隧道
这样就变相实现了 服务端需要公网IP,客户端才能连接连接的问题

我也尝试着自己在源码基础上修改。
我现在的参照项目是:
https://github.com/Hexrotor/f2p
https://github.com/libp2p/go-libp2p
能力有限。可能自己弄不出来。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions