[solved] Twonky Server does not bind to all NICs

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
charraeus
Posts:5
Joined:Mon Aug 18, 2008 4:57 pm
AV Hardware:NOXON Audio -Clients
Twonkymedia V6.0.28
[solved] Twonky Server does not bind to all NICs

Post by charraeus » Tue Mar 08, 2011 9:15 pm

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
Last edited by charraeus on Tue Mar 08, 2011 9:47 pm, edited 1 time in total.

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

Re: Twonky Server does not bind to all NICs

Post by phibertron » Tue Mar 08, 2011 9:23 pm

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"
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

charraeus
Posts:5
Joined:Mon Aug 18, 2008 4:57 pm
AV Hardware:NOXON Audio -Clients
Twonkymedia V6.0.28

Re: Twonky Server does not bind to all NICs

Post by charraeus » Tue Mar 08, 2011 9:46 pm

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

User avatar
phibertron
Posts:1566
Joined:Sun Jan 30, 2011 5:52 pm
AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000

Encoders
========
Handbrake
x264
ffmpeg
mencoder

Tagging
======
mp3tag

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

Post by phibertron » Tue Mar 08, 2011 9:53 pm

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
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497

Locked