GithubHelp home page GithubHelp logo

可以开udp吗 about natter HOT 4 CLOSED

mikewang000000 avatar mikewang000000 commented on July 20, 2024
可以开udp吗

from natter.

Comments (4)

MikeWang000000 avatar MikeWang000000 commented on July 20, 2024

后面会加上这个功能。
我写了个粗糙的 demo,跑 wireguard 是没有问题的。

因为 UDP 是无连接的,端口重用会混跑 STUN 协议和另外一个协议。
考虑到这点,我会把功能实现稳定下来之后,加到 Natter 里面。

from natter.

bfmtbbs avatar bfmtbbs commented on July 20, 2024

我用v0.9确实可以打开udp端口, 但是如果先打开wireguard在运行natter ,会提示:
OSError: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。
反之也是一样,wireguard报错无法使用同端口
而TCP却是可以同时运行natter和应用程序使用相同端口的,这个可以解决吗?

from natter.

MikeWang000000 avatar MikeWang000000 commented on July 20, 2024

我用v0.9确实可以打开udp端口, 但是如果先打开wireguard在运行natter ,会提示: OSError: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 反之也是一样,wireguard报错无法使用同端口 而TCP却是可以同时运行natter和应用程序使用相同端口的,这个可以解决吗?

这个其实与 Windows 的 socket 特性有关,建议使用转发

from natter.

MikeWang000000 avatar MikeWang000000 commented on July 20, 2024

目前最新 v2 版本已经正式支持 UDP,使用方法为 -u 选项。
如果遇到新的问题欢迎提新的 issue。

from natter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.