digitalocean, mydomain.org kurento media server turn/stun

702 views
Skip to first unread message

maxlinux duemila

unread,
Oct 15, 2015, 7:26:17 PM10/15/15
to kurento

i am new around here and I just installed kurent media server over a VPS in digitalocean.com
I have assigned a subdomain on dns server.
The served has a public IP and own domain with ubuntu 14.04
64bit.

1st question:
I had any  problem installin kurent media server 6 and following the documentation, I undestand that i my case I don't need to install a turn and stun server ...it's correct?

2nd question: I tried the tutorial 3 and 4 but neither works for me ... before investigating further, let me know if you need to have installed a turn stun server.

Thank you
MaX

Ivan Gracia

unread,
Oct 16, 2015, 5:13:40 AM10/16/15
to Kurento Public
Hi Max,

Welcome to the list! Hope you have a good experience with Kurento :-)

About your question, if your server does not have a public IP, but a public and a private IP, and there is some NAT going on (most likely) you'll definitely need at least STUN. Here is a good post about WebRTC, STUN, TURN and signaling. Worth a read if you are starting! Getting those things right in the beginning will save you a lot of trouble later ;-)

One way to see in the logs if you need STUN, is if you KMS is generating candidates with the public IP from your server. You can just grep the log file for your IP, and see if something comes out.

Another thing that can be happening, is that you need to open certain ports. There are some posts in the list about that (this one, for instance), and will show you which ports you need to open.

Please let us know if you need STUN with your setup, as we've never worked with digitalocean :-)

Cheers,

Ivan Gracia



--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luis Lopez

unread,
Oct 16, 2015, 5:15:32 AM10/16/15
to kur...@googlegroups.com
If I'm not wrong, DigitalOcean is based on OpenStack and the public IP is just a floating IP. If this is the case, a STUN server will be needed for certain.

Luis Lopez
Kurento.org Project Coordinator
tel +34 914 888 713tel lu...@kurento.comtel prof.luis.lopez • twitter linkedin blog youtube

Kurento.org logo

Best WoW Factor Award at WebRTC Conference & Expo 2014 (California)
Award

Audience Choice Award at WebRTC Conference & Expo 2014 (California)
Award

Best of Show Award at WebRTC conference expo 2014 (Paris)
Award


maxlinux duemila

unread,
Oct 16, 2015, 8:36:27 AM10/16/15
to kur...@googlegroups.com
Hi Ivan,

no, digitalocean vps have a real public IP. Here the ping to one o
server of mine where I'm testing Rocket.chat:

ping chat.XXX.XXX
PING chat.XXX.XXX (178.62.XXX.XXX) 56(84) bytes of data.
64 bytes from chat.XXX.XXX (178.62.XXX.XXX): icmp_seq=1 ttl=47 time=72.5 ms
64 bytes from chat.XXX.XXX (178.62.XXX.XXX): icmp_seq=2 ttl=47 time=89.0 ms
64 bytes from chat.XXX.XXX (178.62.XXX.XXX): icmp_seq=3 ttl=47 time=92.8 ms

as you can see, the IP is public, and I can have servers in europe,
usa, singapore.....
These VPS servers have only one IP (one distinct for server) and you
can connet with ssh and install the software as you need.


So... still I need STUN, TURN and signaling server?

I suspect that my testing doesn't works because I tried to install
kurento media server in the same vps where I'm testing Rocket.chat,
and the ports can be the sames.

regards
MaX



On 10/16/15, Ivan Gracia <igr...@kurento.org> wrote:
> Hi Max,
>
> Welcome to the list! Hope you have a good experience with Kurento :-)
>
> About your question, if your server does not have a public IP, but a public
> and a private IP, and there is some NAT going on (most likely) you'll
> definitely need at least STUN. Here
> <http://www.html5rocks.com/en/tutorials/webrtc/infrastructure/> is a good
> post about WebRTC, STUN, TURN and signaling. Worth a read if you are
> starting! Getting those things right in the beginning will save you a lot
> of trouble later ;-)
>
> One way to see in the logs if you need STUN, is if you KMS is generating
> candidates with the public IP from your server. You can just grep the log
> file for your IP, and see if something comes out.
>
> Another thing that can be happening, is that you need to open certain
> ports. There are some posts in the list about that (this
> <https://groups.google.com/forum/#!searchin/kurento/ports/kurento/j4z0k1lfqPg/_H3oynXnLYIJ>
> one, for instance), and will show you which ports you need to open.
>
> Please let us know if you need STUN with your setup, as we've never worked
> with digitalocean :-)
>
> Cheers,
>
> Ivan Gracia
>
> <http://www.kurento.org>
> You received this message because you are subscribed to a topic in the
> Google Groups "kurento" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/kurento/ozwQ0ujlT98/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
--
ciao,
MaX

Ivan Gracia

unread,
Oct 16, 2015, 8:49:51 AM10/16/15
to Kurento Public
Where are you running that command from? I think it's not giving the information you think it's giving. As Luis says, if degitalocean is based on OpenStack they'll assign you a floating IP, and have an internal network with your server's IP. Then they'll route all the traffic from the floating IP to the server's internal network IP. I think you are going to need that STUN server.

Just to be sure, ssh to the machine, and do ifconfig. See what you get there. It's probably a 10.X.X.X IP, or other private address space IP.

Ivan Gracia


maxlinux duemila

unread,
Oct 16, 2015, 9:38:02 AM10/16/15
to kurento
Hi

I can open a ssh session to my private rocket.chat server at IP 178.62.239.231
Please have a look to eth0.

max@u9200:~$ ssh ro...@178.62.239.231

Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-57-generic x86_64)

root@chat:~# ifconfig 
docker0   Link encap:Ethernet  HWaddr 02:42:c1:da:65:f3  
          inet addr:172.17.42.1  Bcast:0.0.0.0  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 04:01:77:16:a1:01  
          inet addr:178.62.239.231  Bcast:178.62.255.255  Mask:255.255.192.0
          inet6 addr: fe80::601:77ff:fe16:a101/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:321018 errors:0 dropped:0 overruns:0 frame:0
          TX packets:285482 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:957697518 (957.6 MB)  TX bytes:206559103 (206.5 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3732316 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3732316 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1000179244 (1.0 GB)  TX bytes:1000179244 (1.0 GB)

root@chat:~# 

Ivan Gracia

unread,
Oct 16, 2015, 10:06:23 AM10/16/15
to Kurento Public
Ok, so looks like you won't need STUN :-) In any case, you still need to open all UDP ports, as you are not going through STUN. After doing that, turn off your Rockket.chat app, just in case, and setup the hello-world tutorial. Once you have that, try to connect to the tutorial in http://178.62.239.231:8081/ Search in the KMS logs for your public IP, an see if you generate candidates with that IP.

Attach (don't paste, as they are quite big) your KMS log, along with your client logs.

Ivan Gracia



--
Reply all
Reply to author
Forward
0 new messages