接着对使用coTurn搭建的STUN/TURN服务使用turnutils_uclient程序测试其TURN服务是否正常。

直接连接服务测试服务是否正常。为保证测试使用的服务是TURN服务,在TURN服务启动时,关掉STUN服务。

在TURN服务启动时,如果是命令行,加入"--no-stun"配置;如果使用配置文件的话,加入"no-stun"选项。

使用coTurn服务启动TURN服务后,执行以下命令即可:

turnutils_uclient -v -t -T -u test1 -w 1234 61.18.11.123

其中

-v 表示给出详细提示

-t 使用TCP协议(默认使用UDP)

-T TCP协议中继传输(默认是UDP)

-u TURN的用户名

-w TURN服务对应用户的密码

61.18.11.123 TURN服务的IP地址

执行结果如下:  

 : IPv4. Connected from: 192.168.2.222:
: IPv4. Connected to: 61.18.11.123:
: allocate sent
: allocate response received:
: allocate sent
: allocate response received:
: success
: IPv4. Received relay addr: 61.18.11.123:
: clnet_allocate: rtv=
: refresh sent
: refresh response received:
: success
: IPv4. Connected from: 192.168.2.222:
: IPv4. Connected to: 61.18.11.123:
: IPv4. Connected from: 192.168.2.222:
: IPv4. Connected to: 61.18.11.123:
: allocate sent
: allocate response received:
: allocate sent
: allocate response received:
: success
: IPv4. Received relay addr: 61.18.11.123:
: clnet_allocate: rtv=
: refresh sent
: refresh response received:
: success
: allocate sent
: allocate response received:
: allocate sent
: allocate response received:
: success
: IPv4. Received relay addr: 61.18.11.123:
: clnet_allocate: rtv=
: refresh sent
: refresh response received:
: success
: create perm sent: 61.18.11.123:
: cp response received:
: success
: create perm sent: 61.18.11.123:
: cp response received:
: success
: tcp connect sent
: connection bind sent
: connect bind response received:
: success
: IPv4. TCP data network connected to: 61.18.11.123:
: connection bind sent
: connect bind response received:
: success
: IPv4. TCP data network connected to: 61.18.11.123:
: Total connect time is
: connections are completed
: start_mclient: msz=, tot_send_msgs=, tot_recv_msgs=, tot_send_bytes ~ , tot_recv_bytes ~
: start_mclient: msz=, tot_send_msgs=, tot_recv_msgs=, tot_send_bytes ~ , tot_recv_bytes ~
: start_mclient: msz=, tot_send_msgs=, tot_recv_msgs=, tot_send_bytes ~ , tot_recv_bytes ~
: start_mclient: msz=, tot_send_msgs=, tot_recv_msgs=, tot_send_bytes ~ , tot_recv_bytes ~
: done, connection 0x600051970 closed.
: done, connection 0x600072160 closed.
: start_mclient: tot_send_msgs=, tot_recv_msgs=
: start_mclient: tot_send_bytes ~ , tot_recv_bytes ~
: Total transmit time is
: Total lost packets (0.000000%), total send dropped (0.000000%)
: Average round trip delay 128.400000 ms; min = ms, max = ms
: Average jitter 47.600000 ms; min = ms, max = ms

参考:

http://uniray7-blog.logdown.com/posts/259368-install

coTurn测试程序之 turnutils_uclient的更多相关文章

  1. coTurn测试程序之turnutils_stunclient.exe

    测试使用方法,作为STUN客户端,仅用于测试STUN服务是否正常运行. 使用coTurn服务启动STUN/TURN服务后,执行以下命令即可: turnutils_stunclient -p 61.18 ...

  2. coTurn 运行在Windows平台的方法及服务与客户端运行交互流程和原理

    coTurn是一个开源的STUN和TURN及ICE服务项目,只是不支持Windows.为了在window平台上使用coTurn源码,需要在windows平台下安装Cygwin环境,并编译coTurn源 ...

  3. stun服务器搭建(coTurn)

    0. 前言 好久之前写过一篇搭建WebRTC的文章,里面有简单的说到怎么搭建一个stun服务.但那时只是一笔带过.正好,这两天搭建stun服务,这篇博客就再复习一遍,并把搭建过程整理一下. 1. 安装 ...

  4. Spring+SpringMvc+Mybatis框架集成搭建教程三(框架整合测试程序开发)

    框架整合测试程序开发 (1).在mysql数据库中创建t_user表,sql语句如下 CREATE TABLE `t_user` ( `id` bigint(20) NOT NULL AUTO_INC ...

  5. Junit初级编码(一)第一个Junit测试程序

    序,Junit测试是单元测试的一个框架,提供了很多方法,供我们快速开展单元测试.目前最新版本JAR包为4.12,官网地址为http://junit.org/ 一.第一个Junit测试程序 1 去官网下 ...

  6. 【iCore3 双核心板】DEMO 1.0 测试程序发布

    iCore3 Demo V1.0 程序说明 一.概要 本资料包包含5个文件夹: 1.“arm”里是 icore3上 arm的程序包,开发环境为 KEIL 5.17: 2.“fpga”里是 icore3 ...

  7. float数据在内存中是怎么存储的 AND IEEE754测试程序

    float类型数字在计算机中用4个字节存储.遵循IEEE-754格式标准: 一个浮点数有2部分组成:底数m和指数e 底数部分 使用二进制数来表示此浮点数的实际值指数部分 占用8bit的二进制数,可表示 ...

  8. php测试程序运行时间和占用内存情况

    php测试程序运行时间和占用内存情况: $HeaderTime = microtime(true);//参数true表示返回浮点数值 /** *CODE */ printf(" total ...

  9. C# 测试程序运行时间和cpu使用时间

    方法一 Stopwatch类测试程序运行时间和cpu使用时间 添加命名空间using System.Diagnostics;使用实例如下 private Stopwatch sw = new Stop ...

随机推荐

  1. mysql 开发进阶篇系列 12 锁问题(隔离级别下锁的差异)

    1. innodb在不同隔离级别下的一致性读及锁的差异 不同的隔离级别下,innodb处理sql 时采用的一致性读策略和需要的锁是不同的,同时,数据恢复和复制机制的特点,也对一些sql的一致性读策略和 ...

  2. sql server 性能调优之 CPU消耗最大资源分析1 (自sqlserver服务启动以后)

    一. 概述 上次在介绍性能调优中讲到了I/O的开销查看及维护,这次介绍CPU的开销及维护, 在调优方面是可以从多个维度去发现问题如I/O,CPU,  内存,锁等,不管从哪个维度去解决,都能达到调优的效 ...

  3. ArcMap中属性字段计算器(Field Calculator)的使用技巧

           很多时候,我们在使用ArcGIS进行属性数据编辑时,需要批量修改某些字段值,这时候ArcGIS提供的属性字段计算器(Field Calculator)就是一把利器.下面我就Field C ...

  4. jvm详情——6、堆大小设置简单说明

    年轻代的设置很关键JVM中最大堆大小有三方面限制:相关操作系统的数据模型(32-bt还是64-bit)限制:系统的可用虚拟内存限制:系统的可用物理内存限制.32位系统下,一般限制在1.5G~2G:64 ...

  5. SpringCloud入门之YAML格式文件规范学习

    1. 认识 YAML YAML(发音 /ˈjæməl/)是一个类似 XML.JSON 的数据序列化语言.其强调以数据为中心,旨在方便人类使用:并且适用于日常常见任务的现代编程语言.因而 YAML 本身 ...

  6. mysql的"双1设置"-数据安全的关键参数(案例分享)

    mysql的"双1验证"指的是innodb_flush_log_at_trx_commit和sync_binlog两个参数设置,这两个是是控制MySQL 磁盘写入策略以及数据安全性 ...

  7. Gradle nexus 解决开发机器不连网无法下载gradle插件问题

    在用gradle时常规配置如下(D:\gradle-4.9\init.d\init.gradle文件,没有这个文件时自建): ext { nexus = 'http://192.168.127.128 ...

  8. SpringBoot系列——mail

    前言 邮件是许多项目里都需要用到的功能,之前一直都是用JavaMail来发,现在Spring框架为使用JavaMailSender接口发送电子邮件提供了一个简单的抽象,Spring Boot为它提供了 ...

  9. Apollo 8 — ConfigService 异步轮询接口的实现

    源码 Apollo 长轮询的实现,是通过客户端轮询 /notifications/v2 接口实现的.具体代码在 com.ctrip.framework.apollo.configservice.con ...

  10. RNN入门(一)识别MNIST数据集

    RNN介绍   在读本文之前,读者应该对全连接神经网络(Fully Connected Neural Network, FCNN)和卷积神经网络( Convolutional Neural Netwo ...