Page 1 of 1

[solved] Twonky Server does not bind to all NICs

Posted: Tue Mar 08, 2011 9:15 pm
by charraeus
Hi all,

I had to change my username/password via the rpc-interface. Therefore - as described in another topic - I had to enter the command http://<your-ip>:9000/rpc/set_option?ip=<your-ip>. Since I've entered this command my Twonky does not bind to 127.0.0.1 and to my second NIC anymore. How can I restore the default setting that Twonky binds automatically to the localhost and to all NICs on the system? Before I've entered the RPC-command mentioned above everything was ok.

In the protocol I find the following lines but in the web-interface only 192.168.1.3 is shown as NIC.

Code: Select all

21:08:51:821  [Info] - LOG_SYSTEM: upnp_get_interfaces : get_interface_addresses 127.0.0.1
21:08:51:821  [Info] - LOG_SYSTEM: upnp_get_interfaces : get_interface_addresses 192.168.254.3
21:08:51:822  [Info] - LOG_SYSTEM: upnp_get_interfaces : get_interface_addresses 192.168.1.3
21:08:51:822  [Info] - LOG_HTTP: HTTP_send_header : sending HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 15
Date: Tue, 08 Mar 2011 20:08:51 GMT
I use Twonkymedia 6.0.28 under Ubuntu Linux 10.10.

Best regards,
Christian

Re: Twonky Server does not bind to all NICs

Posted: Tue Mar 08, 2011 9:23 pm
by phibertron
I think that if ip= is defined then it uses just that nic

# IP address to listen to (default: all networks)
ip=

Also, there are a bunch of posts about disablelocalssdp=1 for multihomed servers
which it seems you are doing, and that it was casuing it to bind to both networks,
when a single ip was configured

# disable SSDP on localhost
disablelocalssdp=0

Maybe playing around with combinations of
setting "set_option?ip=" and or "set_option?disablelocalssdp=0"

Re: Twonky Server does not bind to all NICs

Posted: Tue Mar 08, 2011 9:46 pm
by charraeus
Thank's a lot! Changing ip=192.168.1.3 to ip= in the file /var/twonkymedia/twonkymedia/twonkymedia-server.ini solved the problem.

Best regards,
Christian

Re: [solved] Twonky Server does not bind to all NICs

Posted: Tue Mar 08, 2011 9:53 pm
by phibertron
Sweet!

You just answered a question some other guy is just asking where is the ini

/var/twonkymedia/twonkymedia/twonkymedia-server.ini

Ill go tell him, LOL