Guillanume,
In the licode/scripts directory there is the installNuve.sh listed, which
is shown below. The way I see is working is it copies the licode_default.js
script, which is located in licode/scripts, to licode_i.js then uses
licode_1.js to replace licode_config.js. Before I came across this I would
set licode_cofig.js to configure the stun ip and port variables before
starting the server and then noticed that after nuve was started the
licode_config.js stun variables I set earlier where blank. So I set the
stun variables in licode_default.js instead of licode_config.js. In our
system the stun server still does not work for remote client access as the
stun server never gets called. Instead clients outside our of local network
are doing http get to access the server using the server’s local ip address
and port and thus fail to connect because the server disconnects socket
initially established when the client room access was granted. Bottom line:
-
From the server I see a remote client connect
-
From the see the device info.
-
From the server see the room access info
-
Then from the server do not see any stun info and the server disconnects
the client connection
-
From the client see that it was trying to access the servers local ip
address and port and fails, and stun server was never involved.
-
Check licode_config.js and I confirm the server ip and port are set.
I could be doing something wrong but have no idea what.
Wilbert
installNuve.sh
#!/bin/bash
SCRIPT=pwd
/$0
FILENAME=basename $SCRIPT
PATHNAME=dirname $SCRIPT
ROOT=$PATHNAME/…
BUILD_DIR=$ROOT/build
CURRENT_DIR=pwd
DB_DIR=“$BUILD_DIR”/db
install_nuve(){
cd $ROOT/nuve
./installNuve.sh
cd $CURRENT_DIR
}
populate_mongo(){
echo [licode] Starting mongodb
if [ ! -d “$DB_DIR” ]; then
mkdir -p “$DB_DIR”/db
fi
mongod --repair --dbpath $DB_DIR
mongod --dbpath $DB_DIR --logpath $BUILD_DIR/mongo.log --fork
sleep 5
dbURL=grep "config.nuve.dataBaseURL" $PATHNAME/licode_default.js
dbURL=echo $dbURL| cut -d'"' -f 2
dbURL=echo $dbURL| cut -d'"' -f 1
echo [licode] Creating superservice in $dbURL
mongo $dbURL --eval “db.services.insert({name: ‘superService’, key:
‘$RANDOM’, rooms: })”
SERVID=mongo $dbURL --quiet --eval "db.services.findOne()._id"
SERVKEY=mongo $dbURL --quiet --eval "db.services.findOne().key"
SERVID=echo $SERVID| cut -d'"' -f 2
SERVID=echo $SERVID| cut -d'"' -f 1
echo "Mongo Logs: "
cat $BUILD_DIR/mongo.log
echo [licode] SuperService ID $SERVID
echo [licode] SuperService KEY $SERVKEY
cd $BUILD_DIR
replacement=s/auto_generated_ID/${SERVID}/
sed $replacement $PATHNAME/licode_default.js > $BUILD_DIR/licode_1.js
replacement=s/auto_generated_KEY/${SERVKEY}/
sed $replacement $BUILD_DIR/licode_1.js > $ROOT/licode_config.js
rm $BUILD_DIR/licode_1.js
}
install_nuve
populate_mongoOn Sat, Nov 23, 2013 at 10:31 AM, Guillaume Lepinay guyost@gmail.comwrote:
Hello again, sorry sorry, I just notice that the licode_default.js is in
the scripts directory (sorry again).
So I added the IP and port of the stun server inside this file, but it’s
still not working.
I joined my ./licode_config.js and ./scripts/licode_default.js
Thank you.
Guillaume
Le samedi 23 novembre 2013 16:01:07 UTC+1, Guillaume Lepinay a écrit :
Hello,
Thank you for helping me, but i’m not sure I understand everything,
because i’m not very good in english and about the configuration maybe…
I tried to do this :
- I had no file called licode_default.js, so I copied licode_config.js
to licode_default.js (so now I have the 2 files at the same level).
- The 2 files are the same, and I joined them in my message, I hope you
can take 1 minute to have a look.
- I set the IP and port of the stun server in both file.
When I start the server (./script/initLicode) I can see in the log Erizo
is using the local address.
I’m sorry if I didn’t do it correctly… please can you help me little
bit more ?
Thank you.
Guillaume
Le samedi 23 novembre 2013 14:48:27 UTC+1, Wilbert Jackson a écrit :
We have only been able to set the licode_config.js stun server ip and
port info by setting it in the the licode_default.js when newly starting
the server. the nuve script takes the licode_default settings and uses them
to replace the licode_config.js settings. Are you sure
your licode_config.js file has the server and ip info set? Even when we
set the licode_config.js per Javier’s instructions the stun server is
not working for access outside of our local lan. Tried this many, many,
many times!
On Sat, Nov 23, 2013 at 8:34 AM, Guillaume Lepinay guy...@gmail.comwrote:
Hello, I tried this settings, with the IP address :
//STUN server IP address and port to be used by the server.
//if ‘’ is used, the address is discovered locally
config.erizo.stunserver = ‘173.194.78.127’;
config.erizo.stunport = 19302;
But still the same… Erizo controller starts using the local IP
address, as I can see when I run ./script/initLicode.sh :
New erizocontroller ( 1 ) in: 10.0.2.15
2013-11-23T13:27:25.214Z - info: Queue erizoController_1 is open
Is there really now way to use it behind a nat… ?
I’m starting the project, I can’t afford a server just for testing…
and my current has 200Mbps bandwith… that’s why I would like to use it…
I don’t know exactly how is the IP used after Erizo is started, because
i’m not good enough for the network part… but is it possible just to
specify the IP address we want in the config file ? or use another service
like a simple webpage that returns the IP address of the host (we could
specify this url in the licode_config.js file ?
Thank you for your help… for now that’s the most blocking point for
my project
Guillaume
Le vendredi 22 novembre 2013 21:03:41 UTC+1, Javier Cerviño a écrit :
Hi Guillaume,
Currently Erizo only supports setting the IP address (no DNS) in the config.erizo.stunserver
variable. Please, try with .
Cheers,
Javier.
On 22 November 2013 16:08, Guillaume Lepinay guy...@gmail.com wrote:
Hello,
I just tried the STUN server configuration for Erizo.
I’m using a virtual machine (VirtualBox). The host is Windows Server,
directly connected to the internet (No NAT), and the guest is the Ubuntu
that host the Licode server.
The virtual network for the guest is under a NAT (the virtualbox
nat), because nothing else was working to connect the guest to the internet
and use the host IP.
So I configured the settings like this in licode_config.js :
//STUN server IP address and port to be used by the server.
//if ‘’ is used, the address is discovered locally
config.erizo.stunserver = ‘stun3.l.google.com’;
config.erizo.stunport = 19302;
But Erizo is still using the local address behind the nat, instead of
the external address.
Is there something else I should do ?
Thank you for your help.
Guillaume
Le lundi 4 novembre 2013 16:51:00 UTC+1, Javier Cerviño a écrit :
Hi,
For the first question, Licode solves it for you. You only have to
send every stream once to Licode and Licode will forward it to several
users. So the answer is that it is handle natively by the server.
For the second question, the best solution would be not to use a NAT
device between ErizoController and the Internet, which I guess is your
scenario. But you can also configure Erizo Controller to use a STUN server.
You can check the licode_config.js and put a configuration like this in the
corresponding lines:
config.erizo.stunserver = ‘stun_server_IP’;
config.erizo.stunport = stun_server_port;
With your preferred stun server address and ports.
Cheers,
Javier.
On 30 October 2013 20:10, Guillaume Lepinay guy...@gmail.comwrote:
Hello every body,
I have started working with Licode for 2 weeks now and i’m very
happy with it.
Thanks to your previous help I could start very well.
Now I have 2 questions.
The most important question :
If 10 users are in a room, and only 3 are viewed by other users, do
the 10 users send their stream to the server or only the 3 who have at
least 1 subscriber ? Do I have to stop/restart publishing by myself
depending to the subsribers count for each stream, or is it handle natively
by the server to save the bandwidth usage ?
And second question :
When I start licode with initLicode, I get this line in the log :
New erizocontroller (1 ) in : 192.168.1.15.
192.168.1.15 is the local address of the server, but how can I do
to make it use the public address IP (viewed by Internet) to allow users
from internet to connect, and not only users from the local network ?
Thank you very much for your help
With these information, I think I can have something ready in 1 or
2 weeks, if some of you are interested, I will show you.
Guillaume
–
You received this message because you are subscribed to the Google
Groups “lynckia” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lynckia+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
You received this message because you are subscribed to the Google
Groups “lynckia” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to lynckia+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
You received this message because you are subscribed to a topic in the
Google Groups “lynckia” group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/lynckia/Zx0icKQuCX8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
lynckia+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
You received this message because you are subscribed to a topic in the
Google Groups “lynckia” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/lynckia/Zx0icKQuCX8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
lynckia+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.