1 Star 0 Fork 1

野火IM / udp_port_detecter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

UDP端口探测

野火音视频常见客户问题是UDP端口的联通性问题,这里使用UDP端口探测工具来验证野火音视频服务和TURN服务是否开放了UDP端口。

工作原理

有2个工具,服务器端和客户端,服务器端监听指定的UDP端口,客户端去给这个端口发送消息,服务器端收到消息并回复。当客户端能够收到响应,说明此服务器端口是通的,然后再尝试下一个端口,以此类推。

服务器端

服务器端有2个版本,一个是golang版本,另外一个是java版本。golang版本支持window+amd64/linux+amd64/linux_arm64/osx+amd64/osx+arm64平台,如果是这些平台的服务器,建议用golang版本。其他平台请使用java版本。具体使用方法,请参考下面目录:

  1. golang版本
  2. java版本

客户端

客户端有3个版本,golang版本、java版本和android版本。golang和java版本是运行在电脑上的,android版本是运行在android手机上的。golang版本支持window+amd64/linux+amd64/linux_arm64/osx+amd64/osx+arm64平台,如果是这些平台的服务器,建议用golang版本。其他电脑平台请使用java版本。具体使用方法请参考下面目录:

  1. golang版本
  2. java版本
  3. android版本
MIT License Copyright (c) 2023 heavyrain.lee Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

UDP端口联通性检查 展开 收起
Java 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wfchat/udp_port_detecter.git
git@gitee.com:wfchat/udp_port_detecter.git
wfchat
udp_port_detecter
udp_port_detecter
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891