stun

WebRTC uses always TURN outside our LAN

我的未来我决定 提交于 2019-12-08 03:54:33
问题 My problem: I wrote a video chat application based on WebRTC. When two clients connect inside our LAN, they always get a Peer-to-Peer connection. But when a client from our LAN connects with a client outside our LAN it's always a Peer-to-TURN connection. When mobile devices connect with each other it's often TURN-to-TURN. What I expect: I know of symmetric NAT problems and expect 20% to 30% of all connections to require a TURN connection. But so far I never found any two clients outside of

A STUN and TURN server that work under 3G/4G Network

*爱你&永不变心* 提交于 2019-12-08 02:54:08
问题 It is very interesting that I can actually make a mVoIP service from the scratch. I finally could make a call using OpenSIPs source through SIP protocol. I used external STUN server that helps me to find users' private IP address behind NAT firewalls. However, the free external STUN server cannot find user's IP address to make a call when a smartphone is on 3G or 4G network. As a programmer, I won't give up to make a mVoIP service. However, I need a help at this time from you guys. Is there a

Hole punching using STUN

懵懂的女人 提交于 2019-12-07 08:38:54
问题 I'm currently trying to send UDP messages over the internet and have to set up the firewalls for both endpoints A and B (which are both behind a NAT). To do this, I want to use hole punching using a STUN server. When A creates a request to the STUN server (say, private: 85.1.1.12:6000 and public: 173.194.78.127:19302) I get 85.1.1.12:6000 as a response. If I were to send a packet from the same origin configuration (same origin ip and port that were used for the STUN-request) to any other

A STUN and TURN server that work under 3G/4G Network

若如初见. 提交于 2019-12-06 15:39:41
It is very interesting that I can actually make a mVoIP service from the scratch. I finally could make a call using OpenSIPs source through SIP protocol. I used external STUN server that helps me to find users' private IP address behind NAT firewalls. However, the free external STUN server cannot find user's IP address to make a call when a smartphone is on 3G or 4G network. As a programmer, I won't give up to make a mVoIP service. However, I need a help at this time from you guys. Is there a good way to solve this problem? Thank you. There can be two problems here: -you can't find the correct

Installing CoTurn 4.5.0.6 on Ubuntu 16.04.3 x64 TLS not working

这一生的挚爱 提交于 2019-12-06 13:47:10
问题 I am trying to install CoTurn 4.5.0.6 on a Digital Ocean Ubuntu 16.04.3 LTS. I can't use sudo apt-get install coturn since it installs version 4.5.0.3. Also I can't install Ubuntu 17.10 since I need long term support (TLS). I create a droplet on Digital Ocean with Ubuntu 16.04.3 LTS. Then I downloaded CoTurn: wget https://github.com/coturn/coturn/archive/4.5.0.6.tar.gz I unpack it: tar xvfz 4.5.0.6.tar.gz Go inside the folder: cd coturn-4.5.0.6 Install Libraries & Utilities needed: sudo apt

Compiling libnice for Android

大憨熊 提交于 2019-12-06 06:20:26
问题 I'm trying to compile libnice (v0.18 to be specific) for Android, but have run into some troubles. How can I compile libnice for Android? I have listed my attempts so far below. 1st Attempt My first try was using a custom Android.mk makefile but I got an error stating AI_NUMERICHOST undeclared (adding #include <netdb.h> did not resolve this and I'm out of ideas here). See my Android.mk below LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := glib LOCAL_SRC_FILES := lib/libglib

UDP/TCP hole punching vs UPnP vs STUN vs?

独自空忆成欢 提交于 2019-12-06 02:26:35
问题 I try to make a P2P Program and need help with getting through the NAT of the clients. I have read many questions here on stackoverflow, but i never got what the drawbacks and benefits of all the Methods to get through a NAT are. How many routers support which methods? Which methods are commonly used by the big companies? (BitTorrent, TeamViewer,...) What are the drawbacks/benefits of the three methods i listed and which else exists? 回答1: UPnP requires software support in your router. Even

Hole punching using STUN

為{幸葍}努か 提交于 2019-12-05 14:22:59
I'm currently trying to send UDP messages over the internet and have to set up the firewalls for both endpoints A and B (which are both behind a NAT). To do this, I want to use hole punching using a STUN server. When A creates a request to the STUN server (say, private: 85.1.1.12:6000 and public: 173.194.78.127:19302) I get 85.1.1.12:6000 as a response. If I were to send a packet from the same origin configuration (same origin ip and port that were used for the STUN-request) to any other destination address (the destination port stays the same) then my NAT would change the public port again

Installing CoTurn 4.5.0.6 on Ubuntu 16.04.3 x64 TLS not working

时光毁灭记忆、已成空白 提交于 2019-12-04 19:32:34
I am trying to install CoTurn 4.5.0.6 on a Digital Ocean Ubuntu 16.04.3 LTS. I can't use sudo apt-get install coturn since it installs version 4.5.0.3. Also I can't install Ubuntu 17.10 since I need long term support (TLS). I create a droplet on Digital Ocean with Ubuntu 16.04.3 LTS. Then I downloaded CoTurn: wget https://github.com/coturn/coturn/archive/4.5.0.6.tar.gz I unpack it: tar xvfz 4.5.0.6.tar.gz Go inside the folder: cd coturn-4.5.0.6 Install Libraries & Utilities needed: sudo apt-get install libssl-dev sudo apt-get install sqlite3 sudo apt-get install libsqlite3-dev sudo apt-get

Compiling libnice for Android

自作多情 提交于 2019-12-04 13:28:23
I'm trying to compile libnice (v0.18 to be specific) for Android, but have run into some troubles. How can I compile libnice for Android? I have listed my attempts so far below. 1st Attempt My first try was using a custom Android.mk makefile but I got an error stating AI_NUMERICHOST undeclared (adding #include <netdb.h> did not resolve this and I'm out of ideas here). See my Android.mk below LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := glib LOCAL_SRC_FILES := lib/libglib-2.0.a include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := gobject LOCAL_SRC_FILES